You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We now have a checkbox that displays "indeterminate", but will submit the value "checked"
how can I get it to submit the value "Maybe" (as set via the initialization script") ?
a) should $("#mycheckbox").tristate('state', null); have a 3rd param? true/false to specify if the checkbox's masked state is checked/unchecked
b) a new init option: "indeterminateIsChecked": false,false seems to be current behavior, I'd like the options for indeterminate to mask "checked"
method to get value for specified state?
we have the ability to set values via html attributes checkedvalue="Yes" uncheckedvalue="No" indeterminatevalue="Maybe"
or via init function.
how about a function to "get" those values?
To submit it in a form, you should use the *Value attributes or corresponding options checked, unchecked and indeterminate. These values are submitted.
Adding a .getValue() method sound like a nice addition, though they'll have to follow jQuery extension getter signatures (i.e. no value, just a method name like getChecked, getUnchecked and getIndeterminate). If you want to submit a PR for it, please do so, otherwise I'll look into it hopefully next weekend.
<input id="mycheckbox" name="mycheckbox" value="checked" />
We now have a checkbox that displays "indeterminate", but will submit the value "checked"
how can I get it to submit the value "Maybe" (as set via the initialization script") ?
a) should
$("#mycheckbox").tristate('state', null);
have a 3rd param?true
/false
to specify if the checkbox's masked state is checked/uncheckedb) a new init option:
"indeterminateIsChecked": false,
false
seems to be current behavior, I'd like the options for indeterminate to mask "checked"method to get value for specified state?
we have the ability to set values via html attributes
checkedvalue="Yes" uncheckedvalue="No" indeterminatevalue="Maybe"
or via init function.
how about a function to "get" those values?
The text was updated successfully, but these errors were encountered: