I am trying to hide an element by using click event, but the click event doesn't trigger.
Here is the code:
<script src="https://code.jquery.com/jquery-1.9.1.js"></script>
<script src="https://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
<script>
$(document).ready(function(){
$("#myButtonID").click(function(){
$("p").hide();
});
});
</script>
<p>Lorem Ipsum </p>
<a href="#" id="myButtonID">Click Me</a>