Note that there are some explanatory texts on larger screens.

plurals
  1. POFire .click() event in controlgroup
    primarykey
    data
    text
    <p>Trying to fire the .click() event for my controlgroup.</p> <p>Coded HTML:</p> <pre><code>&lt;div data-role="content" class="ui-content" role="main"&gt; &lt;div id="gradegeoradio" data-role="fieldcontain"&gt; &lt;fieldset data-role="controlgroup" data-type="horizontal"&gt; &lt;legend&gt; &lt;/legend&gt; &lt;input id="grade" name="choose" value="Grade" type="radio"/&gt; &lt;label for="grade"&gt; Grade &lt;/label&gt; &lt;input id="geometry" name="choose" value="Geometry" type="radio"/&gt; &lt;label for="geometry"&gt; Geometry &lt;/label&gt; &lt;/fieldset&gt; &lt;/div&gt;... </code></pre> <p>HTML in DOM:</p> <pre><code>&lt;div class="ui-content" role="main" data-role="content"&gt; &lt;div id="gradegeoradio" class="ui-field-contain ui-body ui-br" data-role="fieldcontain"&gt; &lt;fieldset class="ui-corner-all ui-controlgroup ui-controlgroup-horizontal" data-type="horizontal" data-role="controlgroup"&gt;&lt;div class="ui-controlgroup-label" role="heading"&gt; &lt;/div&gt; &lt;div class="ui-controlgroup-controls"&gt; &lt;div class="ui-radio"&gt; &lt;/div&gt; &lt;div class="ui-radio"&gt;&lt;input id="geometry" type="radio" value="Geometry" name="choose"&gt; &lt;/input&gt;&lt;label class="ui-btn ui-corner-right ui-controlgroup-last ui-radio-on ui-btn-active ui-btn-up-c" for="geometry" data-corners="true" data-shadow="false" data-iconshadow="true" data-wrapperels="span" data-theme="c"&gt; &lt;span class="ui-btn-inner ui-corner-right ui-controlgroup-last"&gt; &lt;span class="ui-btn-text"&gt; Geometry &lt;/span&gt;&lt;/span&gt;&lt;/label&gt;&lt;/div&gt;&lt;/div&gt;&lt;/fieldset&gt;&lt;/div&gt; </code></pre> <p>JQuery trying to fire event:</p> <pre><code>$("#geometry").click(); </code></pre> <p>Event listener:</p> <pre><code>$("#geometry, #grade").click(function(){do stuff after click} </code></pre> <p>I'm kind of new to all this, any help would be greatly appreciated. Sorry the HTML in the DOM is all clustered, I copy and pasted it and I couldn't figure out how to format it.</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.
    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