Tuesday, June 4, 2024
 Popular · Latest · Hot · Upcoming
194
rated 0 times [  197] [ 3]  / answers: 1 / hits: 15232  / 13 Years ago, sun, november 13, 2011, 12:00:00

I want to create a input textbox that does not require a <input type=text> form element. The user can still type text into this textbox and the value can still be retrieved using Javascript/jQuery. The reason for doing this is because this textbox will be in a form that upon submit, all form input values will be sent to the server side for processing, and there is this textbox that I dont want its values to be automatically send to server side.



Problem: What is the best way to create such a textbox without relying on HTML form elements input?


More From » jquery

 Answers
75

Just don't give the <input type=text> tag a name attribute and it won't submit. Here is an example:



<input type=text id=myinput value=you will not see this submitted />

[#89147] Friday, November 11, 2011, 13 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
stacied

Total Points: 124
Total Questions: 84
Total Answers: 98

Location: Ivory Coast
Member since Sun, Mar 7, 2021
3 Years ago
;