i am working on a form that requires some of the options disabled when a particular option is selected. I am a beginner in jquery and need help. thanks.
Here is the link
http://thectiweb.com/booknow_new/
What i need to do is, when we select the first options from the first row of the form, we need to disable some of the options from the second row of options.
Here is my html. Please help me out with Jquery
HTML
<form id="calx">
<div class="container">
<div class="span10">
<div class="row-fluid service">
<h3>step 1: Select Your Service*</h3>
<input id="proc1" type="radio" name="proc" value="100"><label for="proc1"><img src="img/simply.png" width="120"><br></label>
<input id="proc2" type="radio" name="proc" value="150"><label for="proc2"><img src="img/pristine.png" width="120"><br></label>
<input id="proc3" type="radio" name="proc" value=""><label for="proc3"><img src="img/custom.png" width="120"><br></label>
</div>
<div class=" row-fluid beds">
<h3>numbers of bedrooms</h3>
<input id="beds1" type="radio" name="beds" value="10"><label for="beds1"><img src="img/1.png"><br><small>one bedroom apt</small></label>
<input id="beds2" type="radio" name="beds" value="20"><label for="beds2"><img src="img/2.png"><br><small>two bedroom apt</small></label>
<input id="beds3" type="radio" name="beds" value="30"><label for="beds3"><img src="img/3.png"><br><small>three bedroom house</small></label>
<input id="beds4" type="radio" name="beds" value="40"><label for="beds4"><img src="img/4.png"><br><small>four bedroom house</small></label>
<input id="beds5" type="radio" name="beds" value="50"><label for="beds5"><img src="img/5.png"><br><small>five bedroom house</small></label>
</div>
<input type="submit" value="BOOK YOUR APPOINTMENT" class="btn btn-primary btn-large bttm" />
</div>
</div>
</table>
</form>
Here is what I have tried so far
$(document).ready(function() {
$(".service").children('input').hide();
$(".service").change(function() {
$(".beds").children('input').hide();
$(".beds").children("input[value^=" + $(this).val() + "]").show()
})
})