I have a variable called messages and I want to pass the value of message(text area) from template.php to sendmessage.php ( text area ) using javascript. Would you please help with this?
Regards,
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.
You can ajax to pick value of DOM elements or you can use location.href with the value you want to send appended to the url .
Ex: http://localhost/message/index.php?&message=$(‘#message’).val()
Hope this will help !!