Note that there are some explanatory texts on larger screens.

plurals
  1. POJQuery UI buttonset misbehaving
    text
    copied!<p>I am building a UI app using JQuery UI elements. I need radio buttons as part of the functionality. While using JQuery buttonset by itself works, once I try to incorporate it with the rest of UI elements they don't align properly:</p> <p><a href="http://jsfiddle.net/sEunS/2/" rel="nofollow">http://jsfiddle.net/sEunS/2/</a></p> <p>Including code here:</p> <pre><code>$(document).ready(function() { $("button").button(); $("#tdiDir").buttonset(); $("#acqMode").buttonset(); }); &lt;div id='primaryLatestControl' class="ui-corner-top pacontainer" style='padding: 4px; display: inline-block; '&gt; &lt;button id="setGain" class="button"&gt;Set&lt;/button&gt; &lt;span class="label"&gt;Gain Value&lt;/span&gt; &lt;input type="text" id="gainValue" class="value" value="2"&gt;&lt;/input&gt; &lt;button id="setLineRate" class="button"&gt;Set&lt;/button&gt; &lt;span class="label"&gt;Line Rate, HZ&lt;/span&gt; &lt;input type="text" class="value" id="lineRateValue" value="3750"&gt;&lt;/input&gt; &lt;button id="setExposeTime" class="button"&gt;Set&lt;/button&gt; &lt;span class="label"&gt;Exposure Time(ms)&lt;/span&gt; &lt;input type="text" class="value" id="exposeTimeValue" value="100"&gt;&lt;/input&gt; &lt;button id="setTDI" class="button"&gt;Set&lt;/button&gt; &lt;span class="label"&gt;TDI Direction&lt;/span&gt; &lt;form&gt; &lt;div id="tdiDir"&gt; &lt;label class="checkLabel" for="forward"&gt;Forward&lt;/label&gt; &lt;label class="checkLabel" for="reverse"&gt;Reverse&lt;/label&gt; &lt;input type="radio" class="value" name="tdiDir" id="forward" checked="checked"/&gt; &lt;input type="radio" class="value " name="tdiDir" id="reverse"/&gt; &lt;/div&gt; &lt;/form&gt; &lt;button id="setAcqMode" class="button"&gt;Set&lt;/button&gt; &lt;span class="label"&gt;Acquisition Mode&lt;/span&gt; &lt;form&gt; &lt;div id="acqMode"&gt; &lt;label class="checkLabel" for="tdi"&gt;TDI&lt;/label&gt; &lt;label class="checkLabel " for="area"&gt;Area&lt;/label&gt; &lt;input type="radio" class="value" name="acqMode" id="tdi" checked="checked"/&gt; &lt;input type="radio" class="value" name="acqMode" id="area"/&gt; &lt;/div&gt; &lt;/form&gt; </code></pre> <p></p> <pre><code>.pacontainer { position: relative; width: 80%; } .label { float: left; margin: 10px; } .checkLabel { width: 100px; float: right; margin: 10px; } .endLine { clear: right; } .button { float: left; margin-left: 10px; clear: left; } .value { float: right; width: 45px; height: 20px; margin: 5px; background-image: none; } </code></pre>
 

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