xxxxxxxxxx
$(document).on('click', "a.tabclick", function() {
var liId = $(this).parent("li").attr("id");
alert(liId);
});
xxxxxxxxxx
$(document).ready(function() {
$("#clicker").click(function () {
alert("Hello!");
$(".hide_div").hide();
});
});
xxxxxxxxxx
//Why is this jQuery click function not working?
//You are supposed to add the javascript code in a $(document).ready(function() {});
$(document).ready(function() {
$("#clicker").click(function () {
alert("Hello!");
$(".hide_div").hide();
});
});