Results 1 to 1 of 1
Apr 25, 2007, 14:01 #1
- Join Date
- Mar 2007
- 0 Post(s)
- 0 Thread(s)
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
Last edited by Tom Brokaw; Apr 25, 2007 at 16:07.