using jquery I want to make a selection from a select box required (ie it can\'t be left as the blank default) if a particular checkbox is ticked. My code:
$
This works like a charm
inputname: { required: function(){ if($("select[name=inputname]").val() == 1){ return true; } else { return false; } } }
You can edit the inputname to yours prefered.
To change it to input field, you can change the select part to input