Note that there are some explanatory texts on larger screens.

plurals
  1. PORadio Button value not get in android Devices
    primarykey
    data
    text
    <p>Am working in jQueryMobile and PhoneGap. Currently am facing a small issue but couldnt resolved yet in Mobile Devices. But its working well in browsers.</p> <p>My Iussue is ; I have three radio buttons ; and when I select anyone of the Radio button i want to get the value of that radiobutton.</p> <p>Here My Code</p> <p><strong>HTML</strong> </p> <pre><code> &lt;div class="radio"&gt; &lt;input type="radio" id="r1" name="rr" data-role="none" value="mr"/&gt; &lt;label for="r1" style="margin-left:0px;"&gt;&lt;span&gt;&lt;/span&gt;Mr&lt;/label&gt; &lt;input type="radio" id="r2" name="rr" data-role="none" value="mrs"/&gt; &lt;label for="r2"&gt;&lt;span&gt;&lt;/span&gt;Mrs&lt;/label&gt; &lt;input type="radio" id="r3" name="rr" data-role="none" value="ms"/&gt; &lt;label for="r3"&gt;&lt;span&gt;&lt;/span&gt;Ms&lt;/label&gt; &lt;/div&gt; </code></pre> <p><strong>CSS</strong></p> <pre><code> .radio { margin-top:20px; height:30px; } .radio input[type="radio"] { display:none; } .radio input[type="radio"] + label { color:#000; font-family:Arial, sans-serif; font-size:14px; font-weight:bold; margin-left:10px; } .radio input[type="radio"] + label span { display:inline-block; width:19px; height:19px; margin:-1px 4px 0 0; vertical-align:middle; background:url(../images/radio.png) no-repeat; background-position:bottom; cursor:pointer; } .radio input[type="radio"]:checked + label span { background:url(../images/radio.png) no-repeat; background-position:top; } </code></pre> <p><strong>JavaScript</strong></p> <pre><code> $("#btn_test").tap(function(event){ var ak = $('input:radio[name=rr]:checked').val(); alert(ak); }); </code></pre> <p><strong>Its Working in Browsers.</strong> But not in Eclipse Simulators When We alert we get a null value.</p> <p>I think its a small issue.. but still I didnt get a solution for this. :(</p>
    singulars
    1. This table or related slice is empty.
    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