Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Checkbox Problem

Empfohlene Antworten

Veröffentlicht

Ich hab eine Seite wo sich bis jetzt 4 Checkboxen befinden (da dass ganze von php generiert wird können es auch irgendwann mal sehr viel mehr Checkboxen sein...

deshabl möchte ich es so machen, dass sich über diesen 4 Checkboxen, nochmal EINE Checkbox befindet... und wenn diese Checkbox ausgewählt wird, sollen automatisch alle anderen Checkboxen Ausgewählt sein! :))

Kann mir jemand dabei helfen?!?

also dass hier ist mein (bisheriger) code(ohne der "ALLE" CHECKBOX) :D

<html><head><title></title></head>

<body>

<form action="test.php" method="POST">

<table>

<input type="checkbox" name="Uebergabe[]" value=".">.<br>

<input type="checkbox" name="Uebergabe[]" value="..">..<br>

<input type="checkbox" name="Uebergabe[]" value="Ordner1">Ordner1<br>

<input type="checkbox" name="Uebergabe[]" value="Ordner2">Ordner2<br>

</table>

<input type="submit" value="testen">

</body></html>

ja js ist da die einziege möglichkeit

und musst du mit js auf das object zugreifen

siehe dazu www.selfhtml.de

  • 2 Wochen später...

So schwer is das nich...

versuch es mal so...

<html>

<head>

<script>

function checkBoxes (form, check) {

for (var c = 0; c < form.elements.length; c++)

if (form.elements[c].type == 'checkbox')

form.elements[c].checked = check;

}

</script>

</head>

<body>

<form name="formName">

Check all <input type="checkbox" name="checkAll"

onClick="checkBoxes(this.form, this.checked)">

<br>

<ul>

<li><input type="checkbox"></li>

<li><input type="checkbox"></li>

<li><input type="checkbox"></li>

</ul>

</form>

</body>

</html>

Mit der einen Box kannst du alle aktivieren bzw. deaktivieren...

Also du brauchst nur Schript ausm Head kopieren und bei der "Check all" Box das onklick auf onClick="checkBoxes(this.form, this.checked)"

Unter IE bei mir gehts... Netscape und Opera erprobt hab ichs jetzt net... is nur mal kurz runtergetippt...

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.