likely the jquery is setting the "disabled" flag, which according to the HTML specs tells the browser to remove the input in regards to submitting a form. Any "disabled" input field will have the same result.

Your solution is to enable all input fields immediately before submitting (which you can do on the onsubmit event of a form.

When I user selects Doctor from a drop down the appropiate checkboxes are checked and the disabled to prevent select other checkboxes. The problem is that when the form is submited the info on the checboxes is not being sent on the email. I need to somehow enable the checkboxes on submit

OK, if this data is stored anyway, e.g. you know Doctor will check boxes 1,9,11 but leave all the others. I'm assuming that this info is stored somewhere (DB?), so it begs the question, what use is it? If it's there just for display purposes, you don't really need it to be sent to the server with the form do you? Just send the doctor value from the dropdown and you have all the info you need. DOnt' you?

I don't write in jQuery, but Im sure they have a method for removing attributes. If not, iterate through the collection that $( "input[type='checkbox']" ) returns you, and for each item .removeAttribute("disabled")

I'm sorry, I know ryan is helping yu, but I'm still thinking, what's the point of all this. If doctors and nurses have closed options but everybody else has free options, does it matter if checkboxes are disabled?

I think he is being asked, as a UI/UX point of view, to do something that is programatically a strange concept. Requests like this come around once in a while.

Yes, what he is doing is easily obfuscated using hidden fields, or simply knowing on the server side to ignore certain fields based on a selection. However, it may not be what was requested of him.

I agree, though, that as far as usability is concerned, it offers little value for the visual change. Having a dynamic list of options display or simply modifying a hidden field, may be more appropriate; but I do not know the situation, nor the scope of whatever project he is working on.

I offered the snippet just to show how pointless getting the data from the checkboxes if nurse or doctor is, as you already know the values. I'd be happier hiding and showing the checkboxes - lot less hassle.

If you are just getting the value of the checkboxes (not the state of them as in checked or not checked), then they need to be enabled or you can't get the value. You may be getting value and state mixed up.

stbuchok I need to pass the data on the checkbox to the email when the form is submited
Im using this script

$( "input[type='checkbox']" ).prop({ disabled: true});

to disable all the checkboxes included the unchecked ones to prevent the user from adding checking othe checkboxes. Because the checkboxes are disabled no information is passing to the email when submited. I the check boxes are enabled the information passes correctly. Is there a way to enable checkboxes onsubmit behind the scenes?