jquery实现 购物车 信息 级联改变
2013-02-06 16:55
120 查看
Html代码
![](http://guangqiang.iteye.com/images/icon_copy.gif)
![](http://guangqiang.iteye.com/images/icon_star.png)
![](http://guangqiang.iteye.com/images/spinner.gif)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html
xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta
http-equiv="Content-Type"
content="text/html; charset=UTF-8"
/>
<title>jQuery</title>
<link
rel="stylesheet"
type="text/css"
href="style.css" />
<script
src="http://www.google.com/jsapi"
type="text/javascript"></script>
<script
type="text/javascript">
google.load("jquery", "1.2.6");
</script>
<script
type="text/javascript"
src="order.js"></script>
</head>
<body>
<table
id="order-table">
<tr>
<th>Product Name</th>
<th>Quantity</th>
<th>X</th>
<th>Unit Price</th>
<th>=</th>
<th
style="text-align: right;">Totals</th>
</tr>
<tr
class="odd">
<td
class="product-title">www.corange.cn<em></em></td>
<td
class="num-pallets">
<input
type="text" class="num-pallets-input"
id="turface-pro-league-num-pallets"
>
</input>
</td>
<td
class="times">X</td>
<td
class="price-per-pallet">$<span>340</span></td>
<td
class="equals">=</td>
<td
class="row-total">
<input
type="text" class="row-total-input"
id="turface-pro-league-row-total"
disabled="disabled">
</input>
</td>
</tr>
<tr
class="even">
<td
class="product-title"><p>Turface® Pro League Red -
<em>Calcined Clay Top Dressinged</em></p>
<p> </p></td>
<td
class="num-pallets">
<input
type="text" class="num-pallets-input"
id="turface-pro-league-red-num-pallets">
</input>
</td>
<td
class="times">X</td>
<td
class="price-per-pallet">$<span>455</span></td>
<td
class="equals">=</td>
<td
class="row-total">
<input
type="text" class="row-total-input"
id="turface-pro-league-red-row-total"
disabled="disabled">
</input>
</td>
</tr>
<tr
class="odd">
<td
class="product-title">Turface® Quick Dry -
<em>Calcined Clay Moisture Absorbent</em></td>
<td
class="num-pallets">
<input
type="text" class="num-pallets-input"
id="turface-quick-dry-num-pallets"
>
</input>
</td>
<td
class="times">X</td>
<td
class="price-per-pallet">$<span>100</span></td>
<td
class="equals">=</td>
<td
class="row-total">
<input
type="text" class="row-total-input"
id="turface-quick-dry-row-total"
disabled="disabled">
</input>
</td>
</tr>
<tr
class="even">
<td
class="product-title">Turface® Mound Clay Red -
<em>Virgin Red Clay</em></td>
<td
class="num-pallets">
<input
type="text" class="num-pallets-input"
id="turface-mound-clay-red-num-pallets">
</input>
</td>
<td
class="times">X</td>
<td
class="price-per-pallet">$<span>40</span></td>
<td
class="equals">=</td>
<td
class="row-total">
<input
type="text" class="row-total-input"
id="turface-mound-clay-red-row-total"
disabled="disabled">
</input>
</td>
</tr>
<tr
class="odd">
<td
class="product-title">Red Infield Conditioner -
<em>Vitrified Clay Top Dressing</em></td>
<td
class="num-pallets">
<input
type="text" class="num-pallets-input"
id="diamond-pro-red-num-pallets"
>
</input>
</td>
<td
class="times">X</td>
<td
class="price-per-pallet">$<span>35</span></td>
<td
class="equals">=</td>
<td
class="row-total">
<input
type="text" class="row-total-input"
id="diamond-pro-red-row-total"
disabled="disabled">
</input>
</td>
</tr>
<tr
class="even">
<td
class="product-title">Drying Agent -
<em>Calcined Clay Moisture Absorbent</em></td>
<td
class="num-pallets">
<input
type="text" class="num-pallets-input"
id="diamond-pro-drying-agent-num-pallets">
</input>
</td>
<td
class="times">X</td>
<td
class="price-per-pallet">$<span>340</span></td>
<td
class="equals">=</td>
<td
class="row-total">
<input
type="text" class="row-total-input"
id="diamond-pro-drying-agent-row-total"
disabled="disabled">
</input>
</td>
</tr>
<tr
class="odd">
<td
class="product-title">Professional -
<em>Calcined Clay Top Dressing</em></td>
<td
class="num-pallets">
<input
type="text" class="num-pallets-input"
id="diamond-pro-professional-num-pallets"
>
</input>
</td>
<td
class="times">X</td>
<td
class="price-per-pallet">$<span>75</span></td>
<td
class="equals">=</td>
<td
class="row-total">
<input
type="text" class="row-total-input"
id="diamond-pro-professional-row-total"
disabled="disabled">
</input>
</td>
</tr>
<tr
class="even">
<td
class="product-title">Top Dressing -
<em>Calcined Clay Soil Conditioner</em></td>
<td
class="num-pallets">
<input
type="text" class="num-pallets-input"
id="diamond-pro-top-dressing-num-pallets">
</input>
</td>
<td
class="times">X</td>
<td
class="price-per-pallet">$<span>30</span></td>
<td
class="equals">=</td>
<td
class="row-total">
<input
type="text" class="row-total-input"
id="diamond-pro-top-dressing-row-total"
disabled="disabled">
</input>
</td>
</tr>
<tr>
<td
colspan="6" style="text-align: right;"> Product SUBTOTAL:
<input
type="text" class="total-box"
id="product-subtotal"
disabled="disabled">
</input>
</td>
</tr>
</table>
</body>
</html>
![](http://guangqiang.iteye.com/images/icon_copy.gif)
![](http://guangqiang.iteye.com/images/icon_star.png)
![](http://guangqiang.iteye.com/images/spinner.gif)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html
xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta
http-equiv="Content-Type"
content="text/html; charset=UTF-8"
/>
<title>jQuery</title>
<link
rel="stylesheet"
type="text/css"
href="style.css" />
<script
src="http://www.google.com/jsapi"
type="text/javascript"></script>
<script
type="text/javascript">
google.load("jquery", "1.2.6");
</script>
<script
type="text/javascript"
src="order.js"></script>
</head>
<body>
<table
id="order-table">
<tr>
<th>Product Name</th>
<th>Quantity</th>
<th>X</th>
<th>Unit Price</th>
<th>=</th>
<th
style="text-align: right;">Totals</th>
</tr>
<tr
class="odd">
<td
class="product-title">www.corange.cn<em></em></td>
<td
class="num-pallets">
<input
type="text" class="num-pallets-input"
id="turface-pro-league-num-pallets"
>
</input>
</td>
<td
class="times">X</td>
<td
class="price-per-pallet">$<span>340</span></td>
<td
class="equals">=</td>
<td
class="row-total">
<input
type="text" class="row-total-input"
id="turface-pro-league-row-total"
disabled="disabled">
</input>
</td>
</tr>
<tr
class="even">
<td
class="product-title"><p>Turface® Pro League Red -
<em>Calcined Clay Top Dressinged</em></p>
<p> </p></td>
<td
class="num-pallets">
<input
type="text" class="num-pallets-input"
id="turface-pro-league-red-num-pallets">
</input>
</td>
<td
class="times">X</td>
<td
class="price-per-pallet">$<span>455</span></td>
<td
class="equals">=</td>
<td
class="row-total">
<input
type="text" class="row-total-input"
id="turface-pro-league-red-row-total"
disabled="disabled">
</input>
</td>
</tr>
<tr
class="odd">
<td
class="product-title">Turface® Quick Dry -
<em>Calcined Clay Moisture Absorbent</em></td>
<td
class="num-pallets">
<input
type="text" class="num-pallets-input"
id="turface-quick-dry-num-pallets"
>
</input>
</td>
<td
class="times">X</td>
<td
class="price-per-pallet">$<span>100</span></td>
<td
class="equals">=</td>
<td
class="row-total">
<input
type="text" class="row-total-input"
id="turface-quick-dry-row-total"
disabled="disabled">
</input>
</td>
</tr>
<tr
class="even">
<td
class="product-title">Turface® Mound Clay Red -
<em>Virgin Red Clay</em></td>
<td
class="num-pallets">
<input
type="text" class="num-pallets-input"
id="turface-mound-clay-red-num-pallets">
</input>
</td>
<td
class="times">X</td>
<td
class="price-per-pallet">$<span>40</span></td>
<td
class="equals">=</td>
<td
class="row-total">
<input
type="text" class="row-total-input"
id="turface-mound-clay-red-row-total"
disabled="disabled">
</input>
</td>
</tr>
<tr
class="odd">
<td
class="product-title">Red Infield Conditioner -
<em>Vitrified Clay Top Dressing</em></td>
<td
class="num-pallets">
<input
type="text" class="num-pallets-input"
id="diamond-pro-red-num-pallets"
>
</input>
</td>
<td
class="times">X</td>
<td
class="price-per-pallet">$<span>35</span></td>
<td
class="equals">=</td>
<td
class="row-total">
<input
type="text" class="row-total-input"
id="diamond-pro-red-row-total"
disabled="disabled">
</input>
</td>
</tr>
<tr
class="even">
<td
class="product-title">Drying Agent -
<em>Calcined Clay Moisture Absorbent</em></td>
<td
class="num-pallets">
<input
type="text" class="num-pallets-input"
id="diamond-pro-drying-agent-num-pallets">
</input>
</td>
<td
class="times">X</td>
<td
class="price-per-pallet">$<span>340</span></td>
<td
class="equals">=</td>
<td
class="row-total">
<input
type="text" class="row-total-input"
id="diamond-pro-drying-agent-row-total"
disabled="disabled">
</input>
</td>
</tr>
<tr
class="odd">
<td
class="product-title">Professional -
<em>Calcined Clay Top Dressing</em></td>
<td
class="num-pallets">
<input
type="text" class="num-pallets-input"
id="diamond-pro-professional-num-pallets"
>
</input>
</td>
<td
class="times">X</td>
<td
class="price-per-pallet">$<span>75</span></td>
<td
class="equals">=</td>
<td
class="row-total">
<input
type="text" class="row-total-input"
id="diamond-pro-professional-row-total"
disabled="disabled">
</input>
</td>
</tr>
<tr
class="even">
<td
class="product-title">Top Dressing -
<em>Calcined Clay Soil Conditioner</em></td>
<td
class="num-pallets">
<input
type="text" class="num-pallets-input"
id="diamond-pro-top-dressing-num-pallets">
</input>
</td>
<td
class="times">X</td>
<td
class="price-per-pallet">$<span>30</span></td>
<td
class="equals">=</td>
<td
class="row-total">
<input
type="text" class="row-total-input"
id="diamond-pro-top-dressing-row-total"
disabled="disabled">
</input>
</td>
</tr>
<tr>
<td
colspan="6" style="text-align: right;"> Product SUBTOTAL:
<input
type="text" class="total-box"
id="product-subtotal"
disabled="disabled">
</input>
</td>
</tr>
</table>
</body>
</html>
相关文章推荐
- jquery实现 购物车 信息 级联改变
- jquery实现 购物车 信息 级联改变
- jquery来实现的添加商品和减少商品数量,用于购物车等实时改变价格
- Jquery实现简单的级联下拉列表 (省市)
- 利用Jquery实现级联省份
- 手写注册页面,并实现验证信息(AJAX,Jquery,正则表达式,密码强度验证)
- Asp.net和Jquery实现用户信息异步验证
- jQuery实现购物车功能
- 使用jquery实现页面滚动到底部自动加载新的信息
- jquery实现鼠标移动出现提示信息
- 轻松学习jQuery插件EasyUI EasyUI实现拖放商品放置购物车
- 用jQuery实现MouseOver信息提示框
- H5基础知识第十四课时(用JQuery实现鼠标悬浮时改变样式)
- jQuery实现滚动加载信息
- PHP+Mysql+jQuery实现动态展示信息
- jQuery实现鼠标悬停显示提示信息窗口的方法
- jquery 页眉单行信息滚动显示实现思路及代码
- jQuery实现随意改变div任意属性的名称和值(部分原生js实现)
- jquery+css实现网页颜色主题变换(只改变已设置好的几种颜色主题)