hello
comment cacher une checkbox dans un formulaire ( qui est remplacer par des images?
voici mon javascript:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5 function turnImgCheck(objCheck) { var img = document.getElementById('img_check_' + objCheck.id); var t = img.src.split('/'); img.src = (t[t.length-1] == 'http://localhost/images/boulesb1.png') ? 'http://localhost/images/boule1.png' : 'http://localhostl/images/boulesb1.png';
voici mon html :
Code : Sélectionner tout - Visualiser dans une fenêtre à part <input type="checkbox" name="boule" id="boule" value="1" onclick="turnImgCheck(this); setChecksb(this)" /><img src="http://localhost/images/boule1.png" id="img_check_boule" alt=""></td></div>';
fred
Partager