Somthing like (Sorry if there are typos, my coffee has not yet been made):
<fieldset id="fs"> <legend>Do you currently have SolidWorks</legend> <ul> <li><label for=""><input type="radio" name="solidworks" value="Yes" id="rdYes" /> Yes</label></li> <li><label for=""><input type="radio" name="solidworks" value="No" id="rdNo" /> No</label></li> </ul> </fieldset>
There are ways to do it better, but my coffee is not made. will edit as soon as I get my elixir.
<script>attr('checked','checked') $("#fs:checkbox").click(function(){ if($("#rdYes:checked").attr('checked','checked')) { $("#boxReseller").css('display', 'block'); }) } }); </script>
source share