I think this plugin will help do it: http://docs.jquery.com/Plugins/livequery
Infact im trying to get this to do something similar for me, but having trouble, Hope that helps. Ben wrote: > Hi all! I have a question regarding the ability to access content > produced by an AJAX request. > > I have a simple tabular row: > > <tr id='1'><td id='first_name'>Ben</td><td id='last_name'>Ross</ > td><td><input type='button' class='edit' value='Edit'</td></tr> > > I use jquery to obtain the id's of each td when the "Edit" button is > pressed, send them off to a php script. The php script queries the > database, returns the values of the row relating to the id given by > the row id, and replaces the row with the following html: > > <td id='first_name'><input type='text' name='Ben'></td><td > id='last_name'><input type='text' name='Ross'></td><td><input > type='button' class='update' value='Update'</td> > > The update button is rebound using Live Query, meaning that clicking > the button is recognized. However, I cannot find a way to access the > new td id's or input values returned via the php script and ajax. Does > anyone have any idea on how to re-bind the new td tags to the page or > how to access them? > > Any and all help is greatly appreciated!