I have a form with radio buttons and checkboxes. I have a textarea before submit i have to dispaly the selected radio and check box values in that textarea. Can you please help me in that concern.How to do it in jquery ?
Share
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.
The jquery serializeArray method will return the data of all your form element in JSON format.
It will also query against the type of fields and return the data , for example ,
returns-
will return the data of all input field in json format.You can parse the JSON string and display the data in your textarea.
Jquery serialize API