Check All INPUT

[Total: 0    Average: 0/5]

A bookmarklet, it will scan through a web page for all INPUT elements, and mark the attribute as checked.

Body Code:

<script>
function doNow()
{
  void(d=document);
  void(el=d.getElementsByTagName('INPUT'));
  for(i=0;i<el.length;i++)
    void(el[i].checked=1) 
}
</script>
<HR>
<form>
<input type=checkbox>
<input type=checkbox>
<input type=checkbox>
<input type=checkbox>
<input type=checkbox>
<input type=checkbox>
<input type=checkbox>
<input type=button onclick="doNow()" value="CheckBox All Now">
</form>

Times Viewed: 6

Leave a Reply

Your email address will not be published. Required fields are marked *