I have a email form that has a link to a popup listing contacts in a form with checkboxes for to, cc, bcc.
Now the problem i'm having is how do i take all three arrays (to, cc, bcc) and append them to the possible values that are already in the parent form?
here is some of the code that i've tried, but it don't seem to work. Keep in mind that i'm not the best person with javascript code so hold on tight :P
any ideas how i can get this working?Code:<script type="text/javascript"> function whenSubmit(f) { var i = 0; var textBuild = 'here '; while(f['to['+i+']']){ if(f['to[' + i + ']'].checked) { textBuild + ';' + f['to[' + i + ']']; } i++; } window.opener.document.getElementById('composeTo').value=textBuild; //window.close(); } </script>





Bookmarks