Hi folks,

Quite awhile back, Karl pointed out to me the
fantastic article about event binding for ajax. I've
since implemented the following function 

$('body').click(function(e) {
 if ($(e.target).is('img.closebutton')) {
        var attribute = "close";
        buttons($(e.target), attribute);
 }
(snip)

where "buttons" handles things. Everything on the page
that needed to be handled was an image or text click,
so this solution worked fine.

However, now I have a dropdown I need to integrate
onto the page, and I need to handle the dropdown's
change event (I have 100% working code for the
dropdown on a different page on the site which doesn't
have this body.click code). I tried putting
body.change(function(e) etc above the body.click
function, but it appears the event is being caught by
body.click due to the initial clicking of the
dropdown. 

Any thoughts would be greatly appreciated :)

thanks,
-kim


       
____________________________________________________________________________________Ready
 for the edge of your seat? 
Check out tonight's top picks on Yahoo! TV. 
http://tv.yahoo.com/

Reply via email to