0
我創造我的html代碼: <input type="checkbox" name="field_opt2" value="true" checked="" style="">
jQuery的。點擊複選框上與引導工作不
但是當我在瀏覽器中運行它,它看起來就像這樣:
<div class="icheckbox_square-green checked" style="position: relative;">
<input type="checkbox" name="field_opt2" value="true" checked="" style="position: absolute; visibility: hidden;">
<ins class="iCheck-helper" style="position: absolute; top: 0%; left: 0%; display: block; width: 100%; height: 100%; margin: 0px; padding: 0px; border: 0px; opacity: 0; background: rgb(255, 255, 255);">
</ins>
</div>
和我的jQuery腳本不工作:
$(".early-bird-check").click(function(){
alert("Asdsd");
});
有什麼想法嗎?
控制檯日誌中的任何內容。 –
嗯,我看不到你在輸入的任何地方使用'.early-bird-check'類。 –
您不使用html元素 –