Create an input text field without using <input type = "text">
I want to create an input text field that does not require a form element <input type="text"> . The user can still enter text into this text box, and the value can still be obtained using Javascript / jQuery. The reason for this is that this text field will be in the form, which when sending all the input values โโof the form will be sent to the server side for processing, and there is this text field that I do not want its values โโto be automatically sent to the server side.
Problem: What is the best way to create such a text field without using HTML input form elements?
if you create a dynamic <input type="text"> using jQuery, it will return its values.
What bothers you if its values โโare sent back? just do nothing with them on the server side.
or,
before sending - change the input type to the label. (+ save values)
or,
if you add the OUTSIDE input to the FORM element, it will not send.