Categories:
.NET (357)
C (330)
C++ (184)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (2)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
To set all checkboxes to true using JavaScript?
To set all checkboxes to true using JavaScript?
✍: Guest
//select all input tags
function SelectAll() {
var checkboxes = document.getElementsByTagName("input");
for(i=0;i<checkboxes.length;i++) {
if(checkboxes.item(i).attributes["type"].value == "checkbox") {
checkboxes.item(i).checked = true;
}
}
}
2008-11-11, 5194👍, 0💬
Popular Posts:
Describe different elements in Static Chart diagrams ? Package: - It logically groups element of a U...
What will be printed as the result of the operation below: main() { int x=5; printf("%d,%d,%d\n",x,x. ..
Can include files be nested? The answer is yes. Include files can be nested any number of times. As ...
What will happen in these three cases? if (a=0) { //somecode } if (a==0) { //do something } if (a===...
How can you write a loop indefinitely? Two examples are listed in the following code: for(;;) { ... ...