Reputation: 26499
Here's the story.
I have a form with some form fields.
Example:
What I would like to do is when I click to submit the form, get JQuery to grab the email field value and append it to the message field.
I have the value stored here:
var email = $('#email').val();
Any ideas?
Upvotes: 0
Views: 3044
Reputation: 1156
This should work:
$("#message").val( $("#message").val() + $('#email').val() );
Upvotes: 0