How to Check a Radio Button in a Group with jquery

To check or select a Radio form control we use prop() method in jQuery. For that, we need to bind the prop method using a selector which can be an ID, class or value of radio control in a group.

As shown below, there is a group of Radio controls with the same name myRadio

Now if we want to check second radio with value 2 we can do so using prop() method in the following way

 

Leave a Reply

avatar
  Subscribe  
Notify of