Note that there are some explanatory texts on larger screens.

plurals
  1. POissue when remove display:none with JQuery
    text
    copied!<p>I am using Jquery buttons set, which is built into Jquery UI. And selectmenu which is a ui addon. </p> <p>.buttonset(); takes a group of buttons and makes thhem into radio buttons .selectmenu(); takes a select menu and truns it into a nice looking popup list.</p> <p>However when I place these items in a div with the property display:none and then in my javascript code I remove the display:none the buttonset does not have it's rounded corners, and the select menu shows up about 2 px wide, although I can still click on those two pixels to open the menu.</p> <p>Any ideas? I'll post my code:</p> <pre><code>.hidden { display:none; } $("#test").selectmenu(); $("#radioset").buttonset(); &lt;div id="mydisplay" class="hidden"&gt; &lt;div id="radioset"&gt; &lt;input type="radio" id="radio1" name="radio" /&gt;&lt;label for="radio1"&gt;Choice 1testetstes&lt;/label&gt; &lt;br /&gt;&lt;input type="radio" id="radio2" name="radio" checked="checked" /&gt;&lt;label for="radio2"&gt;Choice 2&lt;/label&gt; &lt;br /&gt;&lt;input type="radio" id="radio3" name="radio" /&gt;&lt;label for="radio3"&gt;Choice 3&lt;/label&gt; &lt;/div&gt; &lt;select name="test" id="test"&gt; &lt;option value="slow"&gt;Test1&lt;/option&gt; &lt;option value="test2"&gt;Test2&lt;/option&gt; &lt;option value="test3"&gt;Test3&lt;/option&gt; &lt;/select&gt; &lt;/div&gt; </code></pre> <p>And at some point I call this:</p> <pre><code>$("#mydisplay").removeClass("hidden"); </code></pre> <p>But the objects do not display properly... can I force them to re-render or something?</p>
 

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