Tap event on Radio Button
Hello all.
I am trying to add the tap event for radio buttons widget and it does not seem to work. Can someone help me out here?
The JS is here...
- $(document).on('pageshow', function(){
- $("input:radio[name=cuisine-choice]").on("tap", function() {
- console.log($(this).val());
- });
- });
The HTML is here...
- <fieldset data-role="controlgroup" id="cuisine-choices">
- <legend>Choose your cuisine</legend>
- <input type="radio" name="cuisine-choice" id="cuisine-choice-cont" value="15" checked="checked" />
- <label for="cuisine-choice-cont">Continental</label>
- <input type="radio" name="cuisine-choice" id="cuisine-choice-mex" value="12" />
- <label for="cuisine-choice-mex">Mexican</label>
- <input type="radio" name="cuisine-choice" id="cuisine-choice-ind" value="14" />
- <label for="cuisine-choice-ind">Indian</label>
- </fieldset>
Cheers!
Shreerang
Web Developer
Spatial Unlimited