buttonset with REQUIRED

buttonset with REQUIRED

Hi,

I am using the buttonset like this:

  1. <div id="RadioQ1">
  2.   <input type="radio" name="RadioQ1" id="RadioQ1Yes" style="width: 150px;">
  3.   <label for="RadioQ1Yes" style="width: 150px;">1</label>
  4.   <br><br>
  5.   <input type="radio" name="RadioQ1" id="RadioQ1No" style="width: 150px;">
  6.   <label for="RadioQ1No" style="width: 150px;">2</label>
  7. </div>

with a submit button btnRegister

I would like to ask how can I make the RadioQ1 required just like the input text's required?


Thanks,
Jassim