[jQuery] problem adding event after ajax post

2009-11-14 Thread nevadaMedicaid
$.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

Re: [jQuery] problem adding event after ajax post

2009-11-14 Thread Dhruva Sagar
Firstly, your code which you've given has a lot of syntax errors. The selectors are not all enclosed within '' (single quotes). Secondly, in my opinion $('#divld table input') will actually result in an array of inputs (even if length is 1). So you might need to do something like this : $('#divId