jquery.serializeJSON icon indicating copy to clipboard operation
jquery.serializeJSON copied to clipboard

Option includeDisabled

Open fglueck opened this issue 3 years ago • 2 comments

If "true" also disabled :input items are included.

fglueck avatar Mar 15 '21 15:03 fglueck

Thank you. Could you elaborate why this option would be useful? We would also need tests to cover the new use-case. I can review the docs and code comments after that.

marioizquierdo avatar Mar 18 '21 02:03 marioizquierdo

This option is usefull in follow case. If you have "default"-values on server side for paramerts/values that are comes from a form than you have a problem if some parameters not allways submited. The same problem you have with not sended checkboxes or not sended select multiple. You can't detect the difference between, is the parameter not sendet or is it switched off/unselected.

fglueck avatar Mar 18 '21 08:03 fglueck