During the running of my website i create new divs using jquery with class \"a\". I have defined a click() function for \"a\" class as follows:
$(document).r
Try using the .live() function which should also apply for newly inserted DOM elements that match your selector:
$(document).ready(function() { $(".a").live('click', function(){ $(".a").hide(); }); });