JavaScript - Checkbox auf "unbestimmt" setzen
<input type="checkbox" id="cb">
<button type="button"
onClick="document.getElementById('cb').indeterminate=true;">Unbestimmt</button>
Checkbox Status wechseln
<script>
// Checkbox Status wechseln
function toggle(demo) {
if (demo.readOnly) demo.checked = demo.readOnly = false;
else if (!demo.checked) demo.readOnly = demo.indeterminate = true;
}
</script>
<form>
<input type="checkbox" id="demo" onclick="toggle(this)">
<label for="demo"> Checkbox Status wechseln!</label>
</form>
Bausteine
Eine zufällige Auswahl von „Bausteinen” (Snippets) aus den Bereichen CSS, PHP, JavaScript und MySQL.
CSS - Nur gefüllte Tabellenzellen hervorheben
PHP - Zufalls-Farbwerte ausgeben
JavaScript - Die Höhe eines IFrames automatisch dem Inhalt anpassen