input中id怎么变成活的,并让jquery获取volist循环出的id(这是购物车加减功能)
<volistname="products"id="hostlist"><divclass="t">数量:</div><divclass="cbuynum"><istyl...
<volist name="products" id="hostlist">
<div class="t">数量:</div>
<div class="c buynum">
<i style="cursor: pointer;" class="numadjust dec" onclick="plus_minus({pigcms:$hostlist.id}, -1,{pigcms:$hostlist.price})"></i>
<input id="buy_num" name="goods[num]" type="text" value="1">
<i style="cursor: pointer;" class="numadjust add" onclick="plus_minus({pigcms:$hostlist.id}, 1,{pigcms:$hostlist.price})"></i>
<span class="stock"><span id="stock">{pigcms:$hostlist.num}</span></span>
</div>
</volist> 展开
<div class="t">数量:</div>
<div class="c buynum">
<i style="cursor: pointer;" class="numadjust dec" onclick="plus_minus({pigcms:$hostlist.id}, -1,{pigcms:$hostlist.price})"></i>
<input id="buy_num" name="goods[num]" type="text" value="1">
<i style="cursor: pointer;" class="numadjust add" onclick="plus_minus({pigcms:$hostlist.id}, 1,{pigcms:$hostlist.price})"></i>
<span class="stock"><span id="stock">{pigcms:$hostlist.num}</span></span>
</div>
</volist> 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询