Adamus Posted December 1, 2008 Share Posted December 1, 2008 Hi to all Im new to Ajax so i dont know !!! i have this in form ( create with PHP ) <form action="" method="post"> <input type="hidden" name="next_question" value="4"> <input type="hidden" name="answers[1]" value="a"> <input type="hidden" name="answers[2]" value="a"> <input type="radio" name="answers[3]" id="a" value="a"><label for="a">Asia</label><br> <input type="radio" name="answers[3]" id="b" value="b"><label for="b">England</label><br> <input type="radio" name="answers[3]" id="c" value="c"><label for="c">Italy</label><br> <input type="submit" value="Next "> so i want to pass then answers[1] with javascript ... Is that possible ??? This is a quiz for my site.. Quote Link to comment Share on other sites More sharing options...
priti Posted December 10, 2008 Share Posted December 10, 2008 didn't get you are you trying to reach answer[1]?? <input type="hidden" name="answers[1]" value="a" id="answer1"> document.getElementById['answer1'].value will show u value 'a' Regards Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.