Hi,

I want to set an event handler which is executed after clicking on an element from a combo box, but that combo box doesn't exist when the page is created. It is generated by an AJAX request.

I've tried to set an event using:

$(document).ready(function(){
$('#term2').onchange(function(){
  window.location = http://www.google.com/;
}
}

But this code is not executed, even though I tried to change the selection using the keyboard.

Is there a way of setting this event handler if the html element is created later by an AJAX request?

Thanks.

Octavian

Reply via email to