The ui.newContent returns the activated accordion's content, so it's like using $('.ui-accordion-content-active').
Therefore you can simply use var element = ui.newContent.find('.youtube') to search for an element with class 'youtube' and can use if (element.length > 0) ... to see if it found something or not On Tue, Jan 12, 2010 at 2:21 PM, Bas <basvdlustgr...@gmail.com> wrote: > Can you provide me with an example? > > how to get the element with the class 'youtube' in the ui.newContent > > On 11 jan, 23:05, Suhi <suhaj...@gmail.com> wrote: >> Hi Bas! >> >> Have you looked at the docs?http://docs.jquery.com/UI/Accordion#events >> >> There is both a 'change' and a 'changestart' event you can use, and >> you can use the ui.newContent returned to check for your class name >> and do the replacement. >> Should be no problem with the example in the docs. >> >> Good luck! >> >> On Jan 11, 10:12 pm, Bas <basvdlustgr...@gmail.com> wrote: >> >> > Hi there, >> >> > im looking for a way to change de page on a change of the accordeon. >> >> > i need to search the newContent for a class named youtube and change >> > that content to the youtube embeded player. >> >> > thank you very much > > -- > You received this message because you are subscribed to the Google Groups > "jQuery UI" group. > To post to this group, send email to jquery...@googlegroups.com. > To unsubscribe from this group, send email to > jquery-ui+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/jquery-ui?hl=en. > > > > -- Best regards, Balázs Suhajda
-- You received this message because you are subscribed to the Google Groups "jQuery UI" group. To post to this group, send email to jquery...@googlegroups.com. To unsubscribe from this group, send email to jquery-ui+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en.