SmartCart.js
スクリプトを使用して1つのdivタグの商品を別のタグに追加していますが、このコードを実行すると商品追加ボタンへのイベントは発生しません。どうして?jQuery - divタグにイベントを追加したイベント
var HTML = '<div class="scProductListItem">'+
'<table border="0" cellpadding="2" cellspacing="2">'+
'<tr>'+
'<td rowspan="3"><img width="100px" src="http://webscopia.com/wp-content/uploads/2011/06/Google.plus-get-an-invite-from-me.jpg" alt="Not availabel" /></td>'+
'<td><strong><span id="prod_name'+'test'+'">'+'detail_product[0]'+'</span></strong></td>'+
'</tr>'+
'<tr>'+
'<td>'+
'<input type="button" rel="'+'test'+'" class="scItemButton scBtn" value="Add Product">'+
'</td>'+
'</tr>'+
'</table>'+
'<input type="button" value="TestButton" name="Test" onclick="Alert()"/>'+
'</div>';
$('#sc_productlist').append($(HTML));
製品を追加します。これらのボタンのイベントは受信できません。
どのようにしてイベントハンドラが接続されています*製品*ボタンを追加しますか? –