jQuery click function not working..
[SOLVED] the code snippet below had to be placed inside the success parameter/option of $.ajax()
ok here's my issue. i have a div with its display set to none. then after an ajax call, i use jquery to fade in this div. the content of the div includes an image that has an id = "close_msg". now, in an external js file i wrote this function to handle the clicking of that img tag
i changed the contents of that function to an alert and still nothing works.. anyone know what i'm missing here?
UPDATE: when i hardcode: $("#ajax_msg").hide("slow"); into the onclick event attribute it works fine. still can't make jquery pick up the event though :(