There is a dynamic form which gets build based upon an excel spread sheet. The form itself can have an embedded javascript which can hide and show elements.
Now, I have a servlet which needs to get the list of all hidden items. I was hoping to get this list based upon the fact that these values would be null in request parameter, apparently they are all send, hidden and shown elements as empty strings.
Is there anyway to get the style-class of all items on html page? Or some other trick to help this situation?
If you hide an input field using JavaScript and you don’t want to send its value as parameter to the server, then use JavaScript to disable the input field as well.
E.g.
The client won’t send the values of disabled inputs to the server. You’ll get
nullthen when attempting to get the request parameter by input’s name.