I have 2 radio buttons. How can I check it based on one variable value.
<input type="radio" name="team" id="team_7" value="7">
<input type="radio" name="team" id="team_8" value="8">
I have variable var number; which will set 7 or 8 based on some condition.
What I want is if number is 7, radio button team_7 will be checked by default, if it will be 8 radio button team_8 will be check by default.