jquery - Code is working fine in chrome, but not in IE and Firefox -
i have code here. working fine in chrome, not in ie , firefox.
$(document).ready(function(){ $(".thumb").click(function(){ alert ("reached here."); var cat_id = $(this).attr('id'); // category id alert (cat_id); }); }); <a href="#" class="thumb" id = "20" name="df" > <img src="images/dry_fruits.png" alt="title #0" width="75" height="75"/> </a>
its not hitting alert in firefox , ie. can please me identify issue.
any highly appreciated.
devesh
keeping done in 1 call $(document).ready
ensures no problems race-conditions etc in order functions added called.
if 1 function adds element dom , require presence might conflicts , unexpected behavior due varying calling order...
Comments
Post a Comment