I'm trying to work with a multi-select set of checkboxes, but one of the options can be "N/A". If this is checked, I want all others (not having a class of input-na) unchecked. Also, if a non-NA checkbox is checked, I want the NA checkbox unchecked.I've tried the following, but nothing is happening to the other checkboxes:\[code\]<script type="text/javascript">$(document).ready(function () { $("input[type=checkbox].input-na").change(function (event) { if ($(this).prop("checked")) { $('input[type=checkbox]').not('.input-na').prop('checked', false); } }); $("input[type=checkbox]").not(".input-na").change(function (event) { if ($(this).prop("checked")) { $("input[type=checkbox].input-na").prop("checked", false); } });});\[/code\]It's getting into both areas with "if ($(this).prop("checked"))" which I've confirmed by putting in alerts, so it's the actual code to uncheck that isn't working.Edit: Here is the mark-up:\[code\]<fieldset data-role="controlgroup"> <input type="hidden" name="Questions[0].ResponseOptions[0].key" value="http://stackoverflow.com/questions/13849361/1" /> <input type="hidden" name="Questions[0].ResponseOptions[0].value.ResponseNum" value="http://stackoverflow.com/questions/13849361/1" /> <input type="hidden" name="Questions[0].ResponseOptions[0].value.Text" value="http://stackoverflow.com/questions/13849361/Self service gas, paid at the pump" /> <input type="hidden" name="Questions[0].ResponseOptions[0].value.IsNA" value="http://stackoverflow.com/questions/13849361/False" /> <input type="checkbox" name="Questions[0].Responses" id="Question_040179122124101173157046112086076030096242133244_1" value="http://stackoverflow.com/questions/13849361/1" /> <label for="Question_040179122124101173157046112086076030096242133244_1">Self service gas, paid at the pump</label> <input type="hidden" name="Questions[0].ResponseOptions[1].key" value="http://stackoverflow.com/questions/13849361/2" /> <input type="hidden" name="Questions[0].ResponseOptions[1].value.ResponseNum" value="http://stackoverflow.com/questions/13849361/2" /> <input type="hidden" name="Questions[0].ResponseOptions[1].value.Text" value="http://stackoverflow.com/questions/13849361/Self service gas, paid inside at the kiosk or convenience store" /> <input type="hidden" name="Questions[0].ResponseOptions[1].value.IsNA" value="http://stackoverflow.com/questions/13849361/False" /> <input type="checkbox" name="Questions[0].Responses" id="Question_040179122124101173157046112086076030096242133244_2" value="http://stackoverflow.com/questions/13849361/2" /> <label for="Question_040179122124101173157046112086076030096242133244_2">Self service gas, paid inside at the kiosk or convenience store</label> <input type="hidden" name="Questions[0].ResponseOptions[2].key" value="http://stackoverflow.com/questions/13849361/3" /> <input type="hidden" name="Questions[0].ResponseOptions[2].value.ResponseNum" value="http://stackoverflow.com/questions/13849361/3" /> <input type="hidden" name="Questions[0].ResponseOptions[2].value.Text" value="http://stackoverflow.com/questions/13849361/Full service provided by attendant" /> <input type="hidden" name="Questions[0].ResponseOptions[2].value.IsNA" value="http://stackoverflow.com/questions/13849361/False" /> <input type="checkbox" name="Questions[0].Responses" id="Question_040179122124101173157046112086076030096242133244_3" value="http://stackoverflow.com/questions/13849361/3" /> <label for="Question_040179122124101173157046112086076030096242133244_3">Full service provided by attendant</label> <input type="hidden" name="Questions[0].ResponseOptions[3].key" value="http://stackoverflow.com/questions/13849361/4" /> <input type="hidden" name="Questions[0].ResponseOptions[3].value.ResponseNum" value="http://stackoverflow.com/questions/13849361/4" /> <input type="hidden" name="Questions[0].ResponseOptions[3].value.Text" value="http://stackoverflow.com/questions/13849361/Convenience store purchase (not including gas or diesel)" /> <input type="hidden" name="Questions[0].ResponseOptions[3].value.IsNA" value="http://stackoverflow.com/questions/13849361/False" /> <input type="checkbox" name="Questions[0].Responses" id="Question_040179122124101173157046112086076030096242133244_4" value="http://stackoverflow.com/questions/13849361/4" /> <label for="Question_040179122124101173157046112086076030096242133244_4">Convenience store purchase (not including gas or diesel)</label> <input type="hidden" name="Questions[0].ResponseOptions[4].key" value="http://stackoverflow.com/questions/13849361/5" /> <input type="hidden" name="Questions[0].ResponseOptions[4].value.ResponseNum" value="http://stackoverflow.com/questions/13849361/5" /> <input type="hidden" name="Questions[0].ResponseOptions[4].value.Text" value="http://stackoverflow.com/questions/13849361/Car wash" /> <input type="hidden" name="Questions[0].ResponseOptions[4].value.IsNA" value="http://stackoverflow.com/questions/13849361/False" /> <input type="checkbox" name="Questions[0].Responses" id="Question_040179122124101173157046112086076030096242133244_5" value="http://stackoverflow.com/questions/13849361/5" /> <label for="Question_040179122124101173157046112086076030096242133244_5">Car wash</label> <input type="hidden" name="Questions[0].ResponseOptions[5].key" value="http://stackoverflow.com/questions/13849361/6" /> <input type="hidden" name="Questions[0].ResponseOptions[5].value.ResponseNum" value="http://stackoverflow.com/questions/13849361/6" /> <input type="hidden" name="Questions[0].ResponseOptions[5].value.Text" value="http://stackoverflow.com/questions/13849361/Washrooms" /> <input type="hidden" name="Questions[0].ResponseOptions[5].value.IsNA" value="http://stackoverflow.com/questions/13849361/False" /> <input type="checkbox" name="Questions[0].Responses" id="Question_040179122124101173157046112086076030096242133244_6" value="http://stackoverflow.com/questions/13849361/6" /> <label for="Question_040179122124101173157046112086076030096242133244_6">Washrooms</label> <input type="hidden" name="Questions[0].ResponseOptions[6].key" value="http://stackoverflow.com/questions/13849361/7" /> <input type="hidden" name="Questions[0].ResponseOptions[6].value.ResponseNum" value="http://stackoverflow.com/questions/13849361/7" /> <input type="hidden" name="Questions[0].ResponseOptions[6].value.Text" value="http://stackoverflow.com/questions/13849361/None of the above" /> <input type="hidden" name="Questions[0].ResponseOptions[6].value.IsNA" value="http://stackoverflow.com/questions/13849361/True" /> <input type="checkbox" name="Questions[0].Responses" id="Question_040179122124101173157046112086076030096242133244_7" value="http://stackoverflow.com/questions/13849361/7" class = "input-na" /> <label for="Question_040179122124101173157046112086076030096242133244_7">None of the above</label>\[/code\]