所以我有一个非常简单的代码形式和一键 使用jQuery我想,当用户点击该按钮将绑定一些行动,但由于某种原因,它不工作jQuery的点击功能不起作用
下面是代码
<!DOCTYPE html>
<html>
<head>
<script src="jquery.js"></script>
</head>
<body>
<script>
$('#jallerysubmit').bind('click', function() {
alert('asd');
})
</script>
<form>
<input type="checkbox" name="box1">box1<br>
<input type="checkbox" name="box1">box2<br>
<input type="button" id="jallerysubmit" value="Proved">
</form>
</body>
</html>
请建议什么不对的代码,因为它不能正常工作,甚至也不会产生任何错误
谢谢。它现在的作品 – 2010-12-19 14:45:02
@Tomas:不客气。 – sje397 2010-12-19 14:45:49