use jquery checkbox val behavior

In jQuery, .val() returns the value of the checkbox, regardless of the current check state. When setting the value, it changes the value attribute and returns the original object. 
Removing the special case for checkboxes in the code allows it to duplicate jQuery behavior.