I have a page that generates forms depending on user choice. I want to know if there is a way to convert the form into plain text? Ex. The form has 4 fields, each has a label. I would like to take all the labels/fields and print them to the user as follows:
label1 field1
label2 field2
label3 field3
label4 field4
Is there a way to do so?
You can use jQuery to generate basic output, for example:
This will iterate over all the form labels, then take the next element of each label which is the input.
Live test case.