jquery radio button set checked

December 3, 2012   ·   0 Comments

  <form>
    <div id="radio">
    
    
        <input type="radio" id="m_edit_right_kind1" name="m_edit_right"  value='iPhone'/><label for="m_edit_right_kind1">iPhone</label>
        <input type="radio" id="m_edit_right_kind2" name="m_edit_right" value='iPad'  type="radio" /><label for="m_edit_right_kind2">iPad</label>
        <input type="radio" id="m_edit_right_kind3" name="m_edit_right" value='Android'/><label for="m_edit_right_kind3">Android</label>
        <input type="radio" id="m_edit_right_kind4" name="m_edit_right" value='Tablet'/><label for="m_edit_right_kind4">Tablet</label>
        <input type="radio" id="m_edit_right_kind5" name="m_edit_right" value='Windows Phone'/><label for="m_edit_right_kind5">Windows Phone</label>
        <input type="radio" id="m_edit_right_kind6" name="m_edit_right" value='>Web Mobile'/><label for="m_edit_right_kind6">Web Mobile</label>
    </div>
  </form>


            
 <script>
    $(function() {


	   
       $( "#radio" ).buttonset();

var radio = $("input[name=m_edit_right]");
    radio[3].checked = true;
    radio.button("refresh");


	
    });
    </script>     

shareShare on FacebookShare on Google+Share on LinkedInEmail this to someonePrint this pageBuffer this pageDigg thisFlattr the authorShare on RedditPin on PinterestShare on StumbleUponShare on TumblrTweet about this on Twitter

By


Readers Comments (0)


You must be logged in to post a comment.

PowenKo’s Online Store

powenko_arduinoBook
jQuery172

jQuery

Amazon

adsbygoogle

Recent Posts

Categories

Amazon