Jquery not firing
Jquery not firing
所以我试图在使用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>
您的链接不正确。应该.js。 不是 .j
"http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.j"
不等于
"http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"
哪个会工作
相关文章:
- WebSocket onmessage not firing
- Backbone model.change() not firing
- codemirror onKeyEvent not firing
- Dojo onBeforeTransitionIn not firing
- CSS TransitionEnd not firing
- RegisterClientScriptBlock - not firing
- GWT History.back() is not firing onValueChangeHandler
- Signalr connection.start.done not firing
- Javascript XMLHttpRequest onreadystatechanged not firing?
- jstree select_node.jstree not firing
- Jquery not firing
- jQuery.on("drop") not firing
- Javascript window.onload not firing
- MVC 5 javascript not firing
- Javascript FileReader onload not firing
- setTimeout not firing jQuery
- setInterval() not firing
- $.getJSON not firing console.log
- Sails.js IO.socket not firing
- react componentDidMount not firing