Mar 25, 2009
How can i deactivate all checkboxes on a website with javascript?
1 2 3 4 5 6 7 8 | inputs = document.getElementsByTagName('input'); for(i=0; inputs.length > i;i++) { if(inputs[i].type == 'checkbox') { inputs[i].checked= false; } } |
No related posts.
Related posts brought to you by Yet Another Related Posts Plugin.











Code would be better like this
for(var i=0, var inputLength = inputs.length; inputLength > i;i++)
Dominik Jungowski’s last blog post..Don’t use NOW() in MySQL SELECT Queries
Hi, there are many DHTML suites to use, why do you still write js on your pages?
thanks for your comment. that’s right it is more a small code for the firebug console thats work on every page