Monday, June 3, 2024
 Popular · Latest · Hot · Upcoming
11
rated 0 times [  17] [ 6]  / answers: 1 / hits: 26381  / 13 Years ago, thu, july 7, 2011, 12:00:00

Let say that I have the form below:



<form action=sendMessage.php method=post>
<label>Subject</label><input type=text></input>
<label>Message</label><input type=text></input>
<input type=submit></input>
</form>


How can I send an another value like topic(which is pre-defined) without creating an another element for that? Is it possible or do I have to make input element and style it with display: none;



The answer can contain html, javascript or jquery code.


More From » jquery

 Answers
11

Use a hidden input element:



<input type = hidden name = topic value = something />

[#91310] Wednesday, July 6, 2011, 13 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
peytont

Total Points: 215
Total Questions: 110
Total Answers: 111

Location: Armenia
Member since Sat, Dec 31, 2022
1 Year ago
;