[jQuery] help with safari bug / empty and select
<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">Hi this wont empty the layer after a video plugin is inserted into the layer using jquery.media<DIV><BR class="khtml-block-placeholder"></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">$(document).livequery(</SPAN></FONT><FONT class="Apple-style-span" color="#6F1954" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">function</SPAN></FONT><FONT class="Apple-style-span" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">()</SPAN></FONT><FONT class="Apple-style-span" color="#6F1954" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">{ </SPAN></FONT></DIV><P style="margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px"><SPAN class="Apple-tab-span" style="white-space:pre"> </SPAN><SPAN class="Apple-tab-span" style="white-space:pre"> </SPAN><BR class="khtml-block-placeholder"></P><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" color="#6F1954" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;"> </SPAN></FONT><SPAN class="Apple-tab-span" style="white-space:pre"> </SPAN><FONT class="Apple-style-span" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">$(</SPAN></FONT><FONT class="Apple-style-span" color="#6F1954" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">this</SPAN></FONT><FONT class="Apple-style-span" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">) </SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;"> .ready(</SPAN></FONT><FONT class="Apple-style-span" color="#6F1954" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">function</SPAN></FONT><FONT class="Apple-style-span" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">() </SPAN></FONT><FONT class="Apple-style-span" color="#6F1954" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">{ </SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(111, 25, 84); min-height: 15px; "><FONT class="Apple-style-span" color="#6F1954"><BR></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">$(</SPAN></FONT><FONT class="Apple-style-span" color="#7B25FA" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">'.changeBitrate'</SPAN></FONT><FONT class="Apple-style-span" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">).change(</SPAN></FONT><FONT class="Apple-style-span" color="#6F1954" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">function</SPAN></FONT><FONT class="Apple-style-span" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">(event) </SPAN></FONT><FONT class="Apple-style-span" color="#6F1954" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">{ </SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(111, 25, 84); min-height: 15px; "><FONT class="Apple-style-span" color="#6F1954"><BR></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">$(</SPAN></FONT><FONT class="Apple-style-span" color="#7B25FA" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">'#media'</SPAN></FONT><FONT class="Apple-style-span" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">).empty();</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">$(</SPAN></FONT><FONT class="Apple-style-span" color="#7B25FA" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">'#media'</SPAN></FONT><FONT class="Apple-style-span" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">).media(attrs);</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(111, 25, 84); min-height: 15px; "><FONT class="Apple-style-span" color="#6F1954"><BR></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" color="#6F1954" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">});</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(111, 25, 84); min-height: 15px; "><FONT class="Apple-style-span" color="#6F1954"><BR></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(111, 25, 84); min-height: 15px; "><FONT class="Apple-style-span" color="#6F1954"><BR></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" color="#6F1954" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">}</SPAN></FONT><FONT class="Apple-style-span" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">); </SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" color="#6F1954" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">}</SPAN></FONT><FONT class="Apple-style-span" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">);</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; min-height: 15px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; min-height: 15px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; min-height: 15px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">.....</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; min-height: 15px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" color="#357D7F" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;"><</SPAN></FONT><FONT class="Apple-style-span" color="#507D7F" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">a </SPAN></FONT><FONT class="Apple-style-span" color="#6F1B7D" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">id</SPAN></FONT><FONT class="Apple-style-span" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">=</SPAN></FONT><FONT class="Apple-style-span" color="#1F1BF9" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">"media"</SPAN></FONT><FONT class="Apple-style-span" color="#357D7F" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">></</SPAN></FONT><FONT class="Apple-style-span" color="#507D7F" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">a</SPAN></FONT><FONT class="Apple-style-span" color="#357D7F" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">></SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" color="#357D7F" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;"><</SPAN></FONT><FONT class="Apple-style-span" color="#507D7F" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">select </SPAN></FONT><FONT class="Apple-style-span" color="#6F1B7D" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">class</SPAN></FONT><FONT class="Apple-style-span" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">=</SPAN></FONT><FONT class="Apple-style-span" color="#1F1BF9" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">"changeBitrate"</SPAN></FONT><FONT class="Apple-style-span" color="#357D7F" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">/></SPAN></FONT><FONT class="Apple-style-span" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;"> </SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;"><BR class="khtml-block-placeholder"></SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">It wont empty the plugin and will append another video plugin after changing the select menu. </SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;"><BR class="khtml-block-placeholder"></SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">I think its rendered like</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;"><BR class="khtml-block-placeholder"></SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;"><div id="media"></SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;"><div>video in here</div></SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;"></div></SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;"><BR class="khtml-block-placeholder"></SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Monaco" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">Any ideas ?</SPAN></FONT></DIV></BODY></HTML>