所以我想只是調用一個警報按鈕時點擊使用jQuery,我不知道這是否是我的語法錯誤或別的任何人都可以指向我了。jQuery的不點火
<!DOCTYPE html>
<html>
<head>
<title>BETA BLOCKER NET</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.j"></script>
<script type="text/javascript" src="../js/registration.js" ></script>
<link href="../css/bootstrap.css" rel="stylesheet" media="screen">
<link href="../css/override.css" rel="stylesheet" media="screen">
<link href="../css/blackbox.css" rel="stylesheet" media="screen">
<script>
$(document).ready(function() {
$('#RB').on('click', function(){
alert('here');
});
});
</script>
</head>
<body>
<div id="index" class="navbar" >
<div class="navbar-inner">
<ul class="nav">
<li><a href="index.html">Home</a></li>
<li><a href="#">About Us</a></li>
<li><button id="RB">Registration</button></li>
<ul>
</div>
</div>
</body>
</html>
在這裏工作**:==> ** http://jsfiddle.net/HfcZ3/':)' –