jquery - Visually disable a checkbox but allow it to still submit its value -
i have checkbox updated other selections important show checked status user. want read in functionality , represented such in display.
it works fine disabling checkbox (gives greyed out box assist user visually) means upon submitting value not saved.
conversely, if set checkbox read-only disables checkbox still appears normal checkbox.
i kinda want bit each, checkbox submits it's value looks disabled checkbox , still displays check status... have ideas?
use hidden field <input type="hidden" />
. populate hidden same values expect checkbox. way visual element separate data element , not have these concerns.
Comments
Post a Comment