ネストされたボタンがあり、クリックイベントを追加しようとしていますが、機能していないようです。
これが私の目的です
<div id="ui-50">
<div class="ui-rpc" data-role="controlgroup" data-type="horizontal" >
<input type="button" id="rpc-bor" value="<<" />
<input type="button" id="rpc-back" value="<" />
<span style="margin:3px"></span>
<input type="text" id="rpc-jump" value="" />
<input type="button" id="rpc-next" value=">" />
<input type="button" id="rpc-eor" value=">>" />
<span style="margin:20px"></span>
<label id="rpc-current" >0</label>
<label id="rpc-separator" >/</label>
<label id="rpc-total" >0</label>
<span style="margin:20px"></span>
<label id="rpc-rpp" >0</label>
</div>
</div>
id="rpc-eor"ボタンにクリックイベントを追加しようとしています
$("#ui-50 .ui-rpc #rpc-eor").click(function(){
alert("yay!");
});
しかし、イベントは発生しません。何か問題でもありますか?助けてください!前もって感謝します