jq append()新增的dom如何控制
新增的dom无法使用jquery如何解决
javascript
$("#addVolumePrice").click(function(){ $("#thisVolumePrice").append( '<br/> <a class="redVolumePrice" href="javascript:void(0)" >[-]</a>' + '优惠数量 <input type="text" class="input-mini"/>' + '优惠价格 <input type="text" class="input-small"/>' ); }); $(".redVolumePrice").live("click",function(){ alert('111'); }); $(".redVolumePrice").on("click",function(){ alert('111'); });