In Jsp while i press submit button instead of passing values to action.
I want the HTML content of that form with all values it is possible??
If possible give an example. Let me know if any clarification is needed.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It isnt clear where do you need this html content?
If on browser, use an alert in an onSubmit event –
To get this on to server side, you will need to pass this content as part of form submission, maybe in a hidden field.
For InnerHTML with current form values:
Its not plain easy, check out the following link –
innerHTML with current form values
This uses jquery, but you can also write your own without it as well.
Including an example –
Ok, it looks like it works in IE but not in FireFox. Basically you need to
setAttribute('value')for each form element to make it work.Use following –
Hope this helps.