Salut

j'aimerai dans ma fonction rendre un input type text readonly. J'ai trouv� comment faire en regardant dans google mais ca ne fonctionne pas, je peux modifier mon champ.

Code : S�lectionner tout - Visualiser dans une fen�tre � part
document.getElementById("ajout").setAttribute("readonly","readonly");
Comment faut faire ?

Merci