the code:
<script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script> <script type="text/javascript"> $("#clicker").click(function () { alert("Hello!"); $(".hide_div").hide(); }); </script>
The code above does not work. When I click on #clicker, it does not warn or hide. I checked the console and I did not get any errors. I also checked if jQuery loads and if it really is. Therefore, Iām not sure what the problem is. I also made the alert document ready function and it worked, so I'm not sure what I'm doing wrong. Please help. Thank!
javascript jquery click onclick onclicklistener
starbucks Sep 03 '13 at 22:12 2013-09-03 22:12
source share