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

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -