Hallo Leute,
ich habe folgendes Problem: Ich möchte, dass wenn ich ein Kontrollkästchen aktiviere, in einem Formular Feld automatisch ein Text geschrieben wird, z.B. "Karl".
Mein Kontrolkästchen:
	
Die Funktion karl():
	
Und das Formular Feld email:
	
Wie geht das? Könnt ihr mir helfen?
Danke im Voraus.
Gruß
Sven.
					ich habe folgendes Problem: Ich möchte, dass wenn ich ein Kontrollkästchen aktiviere, in einem Formular Feld automatisch ein Text geschrieben wird, z.B. "Karl".
Mein Kontrolkästchen:
PHP-Code:
	
	
<input name="karl" type="checkbox" id="karl" onClick="javascript:karl(document.form)" value="1"> 
PHP-Code:
	
	
function karl(form)
 {
  document.form.email.value='karl';
 } 
PHP-Code:
	
	
<input name="email" type="text" class="normal" id="email" value="1"> 
Danke im Voraus.
Gruß
Sven.
          


Kommentar