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.. Link to comment https://forums.phpfreaks.com/topic/134958-passing-form-field-with-javascript/ 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 Link to comment https://forums.phpfreaks.com/topic/134958-passing-form-field-with-javascript/#findComment-711362 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.