$('a').bind('click',function(e){
alert("hi");
});
with some sites, it fails. that is until i reload it again, it works.
why does this seem to happen ?
$('a').bind('click',function(e){
alert("hi");
});
with some sites, it fails. that is until i reload it again, it works.
why does this seem to happen ?
Is it in $(document).ready(function() {
so that it waits till the page is fully loaded?
You may also want to check out the .live keyword as in
$("a").live("click", function
as this will bind the click event even if you add the control after a partial postback.