因此,我试图在使用 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>