我在html中创建代码: <input type="checkbox" name="field_opt2" value="true" checked="" style="">
但是当我在浏览器中运行它时,它将如下所示:
<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");
});
请问有什么想法吗?
缺少早
鸟检查类。您也可以使用带有属性的 click 函数,例如 $('input[name="field_opt2"]').click(function(){ 警报("嗨")}); .如果可能,请重新发送整个代码