Thanks a ton guys. I knew it was some lack of knowledge on my part. I ended up just using another document.ready in the success callback function. I intend to look into live as well though.
Thanks again! On May 30, 3:18 am, steve_f <[EMAIL PROTECTED]> wrote: > you can use the live plugin. This basically keeps watch for dom > elements that match the selector given. Thus when you inject new > content into the div it will automatically hookup any matched new > elements. > > se here for detailshttp://brandonaaron.net/docs/livequery/ > > If you need more shout > > On May 30, 5:08 am, truent <[EMAIL PROTECTED]> wrote: > > > Im using $(document).ready to bind an onsubmit and onclick event to 2 > > elements of my form. Either of these events fires separately with no > > problem. However, when the onsubmit injects html into a div on page, > > and I then attempt to click on one of the newly injected elements > > expecting the onclick to fire, it doesnt. Is there something about > > the dom not being refreshed or $(document).ready not able to bind > > elements after the page has been loaded and new html injected? Can I > > update the dom? is there an even other than .ready to bind to?