bonsoir a tous,
voila mon probleme je n'arrive pas a modifier l'attribut maxlength,
alors que l'attribut size ne pose pas de problemes...
voila mon code simplifie si necessaire
une idee???
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr"> <head> <title>Bienvenue sur mon site !</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <link rel="stylesheet" media="screen" type="text/css" title="Design sombre" href="mon_design.css" /> <SCRIPT> <!-- function input_size(){ var newchamp3 = document.createElement("input"); newchamp3.id="input3_4"; newchamp3.setAttribute("maxlength","3"); newchamp3.setAttribute("size","8"); document.getElementById("form_ami").insertBefore(newchamp3, document.getElementById('champ1')); } //--> </SCRIPT> </HEAD> <BODY onload="input_size()"> <form method="post" id="form_ami" name="test"> <INPUT TYPE="checkbox" ID="champ1" NAME="champ1" ONCLICK="creechamp1(1)">Le pourquoi du comment de votre rencontre? </br> </form> </BODY> </html>
merci d'avance
Partager