PDA

View Full Version : Creating forms with Javascript and HTML?



boebarl1
April 28th, 2010, 05:20 PM
I am writing trying to create this form and I am wondering how I create multple questions with radio buttons? Can I have one large form with smaller forms inside of that one? I am wondering if the javascript will be able to check all of the forms answers by the parent forms action?
Anyone have any ideas on how I could accomplish this?

<form id = "myQuiz" action = "javascript:checkAnswers()">

<form>
<p>1)What Percentage of Lakes Area Recreation's budget is recieved through public funding?<br />

<input type = "radio" name = "radiobutton" value = "onehundredpercent" />
<label>100%</label><br />

<input type = "radio" name = "radiobutton" value = "ninetypercent" />
<label>90%</label></p><br />
</form>

<form>
<input type = "radio" name = "radiobutton" value = "realmission" />
<label>The mission statement of Lakes Area Recreation is to provide recreation and leisure time activities in the broadest sense to all residents of School District #206, using school district, city, and township facilities and funding, along with private resources when available.mnastics, Dance, Swimming, </label><br />

<input type = "radio" name = "radiobutton" value = "fakemissionthree" />
<label>The mission statement of Lakes Area Recreation is to try and force all of the non-athletic people to move away from the Lakes Area.</label></p><br />
</p>
</form>

<input type = "submit" name = "Submit" value = "Submit" />
<input type = "reset" name = "reset" value = "Reset" />

</form>


Thanks for all the help!
boebarl1

n000bie
April 29th, 2010, 02:22 AM
You cannot nest form inside a form. Use HTML form field array.