I'm Trying to popup an alert when a button is clicked using jQuery but for some reason its not working.
$(document).ready(function () { $("#find").click(function () { alert("Hi"); }); });
Here is the link to code: Weather
Kindly let me what I'm I doing wrong.
You should try this instead.
$(function(){
$("#find").on('click',function () {
alert("Hi");
});
});
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.