im using the following code to change a <a> link to a google embed player. but when to user toggles again (displany:none) it has to change the embed to de <a> again.
how can i do this? $("h3").click(function () { $(this).next().toggle("slow"); var yt = $(this).next().find('.youtube').attr('href'); $(this).next().find('.youtube').replaceWith('<object class="youtube" type="application/x-shockwave-flash" style="width: 320px; height:265px;" data="' + yt + '"><param name="movie" value="' + yt + '" /></object>'); }); -- 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.