Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
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, 4944👍, 0💬
Popular Posts:
What is the concept of XPOINTER? XPOINTER is used to locate data within XML document. XPOINTER can p...
What is NullPointerException and how to handle it? When an object is not initialized, the default va...
How to reduce the final size of an executable file? Size of the final execuatable can be reduced usi...
Which one of the following statements is TRUE in regard to overloading the ++ operator? 1 You cannot...
How to make elements invisible? Change the "visibility" attribute of the style object associated wit...