Hi
I've made a script that generates a popup window with checkbox options that onclick gets send to a textarea on the opener page and it works, but the problem is that the checkbox values overwritte eachother when they are passed to the textarea.
Here is my script:
I hope someone can help.
I've made a script that generates a popup window with checkbox options that onclick gets send to a textarea on the opener page and it works, but the problem is that the checkbox values overwritte eachother when they are passed to the textarea.
Here is my script:
Code:
function check(){
infoservices = document.forms[0].elements
inp_services = self.opener.document.form_tilfoej.inp_services
txt=""
for (i=0;i < infoservices.length; i++){
if (infoservices[i].checked){
txt = infoservices[i].value
}
inp_services.value = txt
}
}