RE: [jQuery] Re: Styling dynamic content

2009-12-17 Thread Dave Maharaj :: WidePixels.com
What about $(".file").live('click', function(){ alert(this) }); I load elements dynamically into a page after the original load and can access their events. For example I have a "add new record" button, loads a form saves to the database and updates the current page with

Re: [jQuery] Re: Styling dynamic content

2009-12-17 Thread Richard D. Worth
See http://docs.jquery.com/Frequently_Asked_Questions#Why_doesn.27t_an_event_work_on_a_new_element_I.27ve_created.3F - Richard On Fri, Dec 18, 2009 at 12:23 AM, Jason Kaczmarsky wrote: > Ahah, this was the problem I thought i was having. I can't make jQuery > work on dynamic content. > > If an e

Re: [jQuery] Re: Styling dynamic content

2009-12-17 Thread Richard D. Worth
Works for me: http://jsbin.com/egoto/ - Richard On Wed, Dec 16, 2009 at 8:44 PM, Jason Kaczmarsky wrote: > Yes, I am sure they are the correct class and are showing up properly. > > Button press: > //loop > $("#files").append(''+Files[i]+''); > //end loop > > Firebug: > > work.txt > SAS Guide.