function checkUncheckAllCheckbox()
{
f=document.frmName
if(f.mainCheckBox.checked)
{
f.checkBoxName.checked=true;
for(i=0;i<f.checkBoxName.length;i++)
f.checkBoxName[i].checked=true;
}
else if(!f.mainCheckBox.checked)
{
f.checkBoxName.checked=false;
for(i=0;i<f.checkBoxName.length;i++)
f.checkBoxName[i].checked=false;
}
}
23 thoughts on “Check or uncheck multiple checkbox at a time in javascript”
Leave your comment
You must be logged in to post a comment.
Hi, interest post. I’ll write you later about few questions!
It is the coolest site, keep so!
Ack, my comment didn’t come out the way I’d liked it to.
The article is ver good. Write please more
Thanks for post. Nice to see such good ideas.
Thanks for this
Hey! Muchas gracias!
Thx. Visit my site http://mehmandar.com/blog/
I want to say – thank you for this
I recently came across your blog and have been reading along. I thought I would leave my first comment. I don’t know what to say except that I have enjoyed reading. Nice blog. I will keep visiting this blog very often.
It is the coolest site, keep so
Thanks for the contibution!!!
Thanks very much for this nice post.
Excellent site, keep up the good work
Excellent site, keep up the good work. I read a lot of blogs on a daily basis and for the most part, people lack substance but, I just wanted to make a quick comment to say I’m glad I found your blog. Thanks,
A definite great read.. 🙂
-Bill-Bartmann
Hi, interest post. I’ll write you later about few questions!
I am going to be doing some anal only on my site just for you!!!!
Thanks for post. Nice to see such good ideas.
I sweet these stories! Nourish making them!
I want to quote your post in my blog. It can?
And you et an account on Twitter?
Thanks for writing, I very much liked
Many thanks!
It’s going to be ending of mine day, except before ending I am reading this fantastic article to increase my knowledge.