JavaScript Show & Hide Controls

show_hide.htm HTML (683 bytes) 27.09.2015 13:38
<!DOCTYPE html >
<html>
  <head>
    <title>Show/Hide Div Content Demo</title>
  </head>
  <body>
    <form id="form_id">
      <fieldset>
        <legend>Show/Hide Div Content Demo</legend>
<input type="checkbox" name="checkbox" id="checkbox_id" value="true" onchange="document.getElementById('toggle_id').style.display = this.checked ? 'block' : 'none';" /><label for="checkbox_id">alternative Text</label><br />
        <div id="toggle_id" style="display:none;"><label for="textbox_id">label:</label><input type="text" name="textbox" id="textbox_id" value="" /></div>
      </fieldset>
    </form>
  </body>
</html>

Author: , published: , last modified:

Kontakt

Udo Schmal

Udo Schmal
Softwareentwickler
Olvengraben 41
47608 Geldern
Nordrhein-Westfalen
Germany





+49 2831 9776557
+49 1575 0663676
+49 2831 1328709
SMS
WhatsApp

Instagram Profile
vCard 3.0

Service Infos

CMS Info Product Name:
UDOs Webserver
Version:
0.4.2.101
Description:
All in one Webserver
Copyright:
Udo Schmal
Compilation:
Mon, 18. Jan 2021 23:28:31
Development Info Compiler:
Free Pascal FPC 3.3.1
compiled for:
OS:Linux, CPU:x86_64
System Info OS:
Ubuntu 20.04.1 LTS (Focal Fossa)
Hardware Info Model:
Hewlett-Packard HP Pavilion dv7 Notebook PC
CPU Name:
Intel(R) Core(TM) i5-2450M CPU @ 2.50GHz
CPU Type:
x86_64, 1 physical CPU(s), 2 Core(s), 4 logical CPU(s), 2274.761 MHz