F
franklembke
Hello,
I'm new with JS an I have a problem I could not solve all the day.
The problem: I only want that a checkbox is checked after the user has
clicked on another. My code:
<script type="text/javascript">
function testwithcheckboxes () {
if (document.Formular.option1.checked == true) {
document.Formular.myarray[option1a].checked;
}}
</script>
--- an the form is as follows ---
<form name="Formular" form action="pdf.php" method="post"
onsubmit="return chkFormular()">
<input type="checkbox" name="option1" value="Text1 "
onclick="testwithcheckboxes ();">Text1<br><blockquote>
<input type="checkbox" name="myarray[option1a]"
value="Text2">Text2<br>
</form>
I don't know what to do more and I really need your answers! Thanks a
lot
Frank
I'm new with JS an I have a problem I could not solve all the day.
The problem: I only want that a checkbox is checked after the user has
clicked on another. My code:
<script type="text/javascript">
function testwithcheckboxes () {
if (document.Formular.option1.checked == true) {
document.Formular.myarray[option1a].checked;
}}
</script>
--- an the form is as follows ---
<form name="Formular" form action="pdf.php" method="post"
onsubmit="return chkFormular()">
<input type="checkbox" name="option1" value="Text1 "
onclick="testwithcheckboxes ();">Text1<br><blockquote>
<input type="checkbox" name="myarray[option1a]"
value="Text2">Text2<br>
</form>
I don't know what to do more and I really need your answers! Thanks a
lot
Frank