Questionaries.org
Login
Register
Questions
Unanswered
Tags
Users
Ask a Question
Welcome to Questionaries, where you can ask questions and receive answers from other members of the community.
Let us know at info@questionaries.org
To set all checkboxes to true using JavaScript?
4
like
0
dislike
Hello
To set all checkboxes to true using JavaScript?
Please give me your feedback........
asked
1 year
ago
by
rad_joshep
(
19,390
points)
checkboxes
javascript
1 Answer
2
like
0
dislike
Best answer
//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;
}
}
}
answered
1 year
ago
by
daneim
(
127,080
points)
Related questions
4
like
0
dislike
1
answer
How to Accessing Elements using javascript?
asked
1 year
ago
by
rad_joshep
(
19,390
points)
accessing
elements
javascript
4
like
0
dislike
1
answer
How to get the contents of an input box using Javascript?
asked
1 year
ago
by
daneim
(
127,080
points)
javascript
input-box
14
like
0
dislike
1
answer
How to run FQL , using javascript?
asked
2 years
ago
by
biswaskeran
(
70,430
points)
fql
php
query
javascript
5
like
0
dislike
1
answer
Are you concerned that older browsers don't support JavaScript and thus exclude a set of Web users?
asked
1 year
ago
by
daneim
(
127,080
points)
javascript
website
16
like
0
dislike
1
answer
can I set Cooke by javascript
asked
2 years
ago
by
SeO
(
39,810
points)
javascript