I have this so far:
Code:
<script language='javascript'>
function addCheck() {
document.getElementById('KeywordhText').value = '';
for (var i = 0; i < document.getElementById('Keywordh').length;i++) {
if (document.yourForm.Keywordh[i].checked == true) {
document.getElementById('KeywordhText').value = document.getElementById('KeywordhText').value + document.yourForm.Keywordh[i].value + ' ';
}
}
}
</script>
<%
For Each Word In ArrayTemp
Response.Write "<input type=""checkbox"" value=""" & Trim(ArrayTemp(i)) & """ name=""Keywordh"" onChange=""javascript:addCheck();"">" & word & "</br>"
i=i+1
next
Response.Write "</br>"
%>
</td>
<%
rs.MoveNext
loop%></br>
<%
Response.Write("<textarea name='""KeywordhText""' rows='3' cols='64'>")
response.write("</textarea></br>")
%>
<%' <input size="10" name="KeywordhText" value="<%=Request("Keywordh")%"></br>%>
<input type="submit" value=" Search " size="100" title="Search everything selected">
</form>
First, the checkboxes are words of a broken phrase. WHat I need is that whatever I select it should write in the textarea automatically. It's not doing that. Either the javascript is wrong or the eventhandlers are needed, or both.
Martial Law 9/11 Rise of the Police State is now available! Visit our Martial Law movie section for complete info (click here), or order now by clicking the button below or by calling 888-253-3139
http://www.infowars.com/martial_law_911.htm