comment cacher une checkbox
hello
comment cacher une checkbox dans un formulaire ( qui est remplacer par des images?
voici mon javascript:
Code:
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:
<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