I have made following very simple code just to test few things.My following code is not working in my website project in VS2013 although it is working fine in jsfiddle.net.what is happening ?
HTML:
<p>Name:</p>
<input type="text" />
<p>Age:</p>
<input type="text" />
<p></p>
<input type="button" id="btn" value="Submit" />
JS:
<script src="Scripts/jquery-2.1.1.min.js">
$(document).ready(function () {
$("#btn").click(function () {
window.alert("Hi Guys");
});
});
</script>
<script src="/Scripts/jquery-2.1.1.min.js"></script>
<script>
$(document).ready(function () {
$("#btn").click(function () {
alert("Hi Guys");
});
});
</script>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.