I want to concatenate value of checkbox and textarea with the simplest approach possible (hopefully one javascript code).
I will have about 400 checkboxes to choose from. After each 20 check boxes, there will be one textarea to comment on the reason checkboxes were selected.
These selections will result in a paragraph that I can copy past to a document and edit
for example, i can check the box for "blue car" "better than" "red car" and in area type "because i like red color. "Kelly Corn" "divorced" "John James" and in area type"because he was nasty" and in the text area name="past_info_here"; I will have
blue car is better than red car because i like red color. Kelly Corn divorced John James because he was nasty"
I have very little skills that I acquired in 2004 (undergrad)-- average abilities in Dreamweaver
<html>
<head>
</head>
</head>
<body>
<textarea name="past_info_here" cols="100" class="textfield" id="final_pragraph"></textarea>
</p>
<br>
<b>OPTION 1</b>
<br>
<input type="checkbox" value=" Red car "> red car</label>
<input type="checkbox" value=" blue car "> red car</label>
<input type="checkbox" value=" is better than "> better than</label>
<input type="checkbox" value=" Red car "> red car</label>
<input type="checkbox" value=" blue car "> red car</label>
<br> because<BR>
<input type="textarea" > reason</label>
<br>
<b>OPTION 2</b>
<br>
<input type="checkbox" value=" John James "> John </label>
<input type="checkbox" value=" Kelly Corn "> kelly</label>
<input type="checkbox" value=" married "> married</label>
<input type="checkbox" value=" divorced"> divorced</label>
<input type="checkbox" value=" John James "> John </label>
<input type="checkbox" value=" Kelly Corn "> kelly</label>
<br> because<BR>
<input type="textarea" > reason</label>
</body>
</html>
Aucun commentaire:
Enregistrer un commentaire