I have a span element which opens a date picker and then displays the date once it’s been picked.
Is there a way to send its content with all the other values?
I am using a hidden input which takes the value of the span when it changes, so I am not stuck, but I was wondering if there is a more straight forward solution.
Thanks, Dan
The reason for displaying the date in a span element instead of an input box was because I didn’t want the users to be able to input a date manually.
I have just found out that there is a readonly attribute for text inputs. Using that instead of that workaround solves my problem.
Thanks for the answers I received while looking for a solution myself anyway!