jquery, set radio

December 3, 2012   ·   0 Comments

Screen Shot 2012-12-03 at 10.48.04 AM
 <input type="radio" name="myradiobutton" value="1" />1
<input type="radio" name="myradiobutton" value="2" />2
<input type="radio" name="myradiobutton" value="3" />3
<script>
    $(function() {
	
	var value = 2;
$("input[name=myradiobutton][value=" + value + "]").attr('checked', 'checked');

    });
    </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