Note that there are some explanatory texts on larger screens.

plurals
  1. POwhy is my context selector and .buttonset() taking so long in ie
    primarykey
    data
    text
    <p>So I assume this is something I'm doing flagrantly wrong. It is soo slow in ie there must be something fundamentally wrong with this. </p> <p>Le HTML</p> <pre><code>&lt;div id='mother'&gt; &lt;div id="radio"&gt; &lt;input type="radio" id="radio1" name="radio" /&gt; &lt;label for="radio1"&gt;Choice 1&lt;/label&gt; &lt;input type="radio" id="radio2" name="radio" checked="checked" /&gt; &lt;label for="radio2"&gt;Choice 2&lt;/label&gt; &lt;/div&gt; &lt;div id="radioTwa"&gt; &lt;input type="radio" id="radioTwa1" name="radioTwa" /&gt; &lt;label for="radioTwa1"&gt;Choice 1&lt;/label&gt; &lt;input type="radio" id="radioTwa2" name="radioTwa" checked="checked" /&gt; &lt;label for="radioTwa2"&gt;Choice 2&lt;/label&gt; &lt;/div&gt; &lt;div id="check"&gt; &lt;input type="checkbox" id="check1" name="check" /&gt; &lt;label for="check1"&gt;Choice 1&lt;/label&gt; &lt;input type="checkbox" id="check2" name="check" checked="checked" /&gt; &lt;label for="check2"&gt;Choice 2&lt;/label&gt; &lt;/div&gt; &lt;/div&gt;​​​​​​​​​​​​ </code></pre> <p>Le JQuery/JQuery UI</p> <pre><code> var mother = $('​​​​​​​​​​​​​​#mother'); ​ mother.find('#radio').buttonset();​​​​​​ mother.find('#radioTwa').buttonset(); mother.find('#check').buttonset(); </code></pre> <p>or</p> <pre><code> var mother = $(​​​​​​​​​​​​​​'#mother'); ​ $('#radio', mother).buttonset();​​​​​​ $('#radioTwa', mother).buttonset(); $('#check', mother).buttonset(); </code></pre> <p>Both of these will bring IE 8 to it's knees and make it cry. To nip some things in the bud I am using the context of mother on purpose. I do not have a unique ID to each radio box, I planned to select them using context, because of the number 'mother' type divs that are on the page though each mother div element I am using only has about 8 or 9 elements within it. Is there no way to select using context in IE 8 that is quick enough to not grind it to a halt?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload