$.post(''strutseventname', $('form:first').serialize(),
   function(data) {
     $('#divId').html(data);
     alert('am i visible ' + $('#divId table input).length);
     $('#divId table input).click(function() {
         alert('i am here');
     });
   }, "html");

when i execute the function above, the data in divId appears but the
click function doesnt work. i inserted the alert between inserting the
data and setting the click event.  it shows that the data is not
visible to jQuery.

It appears that jQuery cant see the new data until after the
javascript method ends.

can you help me understand where i am going wrong?

thanks

Reply via email to