Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/423.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript Jquery。单击复选框,引导程序不工作_Javascript_Jquery_Html_Twitter Bootstrap - Fatal编程技术网

Javascript Jquery。单击复选框,引导程序不工作

Javascript Jquery。单击复选框,引导程序不工作,javascript,jquery,html,twitter-bootstrap,Javascript,Jquery,Html,Twitter Bootstrap,我在html中创建了一个代码: 但当我在浏览器中运行它时,它将如下所示: <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

我在html中创建了一个代码:

但当我在浏览器中运行它时,它将如下所示:

<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>

有什么想法吗?

缺少早起检查类。您也可以使用属性为$('input[name=“field_opt2”]”的单击函数。单击(函数(){ 警报(“嗨”)
}); .如果可能,请重新发送整个代码。

控制台日志中的任何内容。我看不到您在输入的任何地方使用类
。early bird check
?您没有在dom ready中的html元素包装代码中使用属性class=“early bird check”?是的,检查器在哪里被归类为early bird check?
$(".early-bird-check").click(function(){
            alert("Asdsd");
        });