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 jkaczmar...@yahoo.comwrote: Yes, I am sure they are the correct class and are showing up properly. Button press: //loop $(#files).append('div class=file'+Files[i]+'/div'); //end loop

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 jkaczmar...@yahoo.comwrote: Ahah, this was the problem I thought i was having. I can't make jQuery work on dynamic

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