Firebug will allow you to see the HTML that is being updated dynamically by jQuery.
http://getfirebug.com/ I had an issue with the accordion script flaking before, it turned out to be an extra </div> in my HTML. It is a good idea to test the scripts in a barebones template to verify it is not your own HTML causing the issues. More often than not, it is not the plugins causing the issue. On May 25, 8:51 pm, Danny Nolan <danny_no...@yahoo.co.uk> wrote: > First is the code you cant see. Any and all post document ready changes are > not visible by view >> page source. > > Instead, select the object with your mouse, right click, and view selection > source. > > As for the accordion, not so sure there! > > --- On Mon, 5/25/09, Bharat <bcrupa...@yahoo.com> wrote: > > From: Bharat <bcrupa...@yahoo.com> > Subject: [jQuery] JQuery UI Accordion Plugin > To: "jQuery (English)" <jquery-en@googlegroups.com> > Date: Monday, May 25, 2009, 6:55 PM > > I am a Rails developer and new to jQuery so this may be a naive > question: > I am using jQuery Accordion plugin in my project and it is working, > but now I am trying to tweak it and do not know how to: > > So I have a page that displays comments as a stack of accordion > folds. This is the code in my application.html.erb (master layout) > file: > > $("#accordion").accordion({ autoHeight: false, event: > 'mouseover' }); > > This works fine. There is a Rails form on this page where I allow the > users to create a comment, and submit it. Upon submission, the > "prepends" the notes record as shown below: > > $("#accordion").prepend("<%= escape_javascript(render(:partial => > 'shared/comment', :object => @comment)) %>"); > $("#new_comment")[0].reset(); > > What is totally confusing me is that this is showing on the page, but > is not a part of the accordion. As a matter of fact, when I view the > page source, the entry is not even there on the page, yet it is being > shown in the browser. How could that be? There is something > fundamental that I am missing here. > > Kindly explain. > > Thanks. > > Bharat