tag:blogger.com,1999:blog-3893582346020662759.post3886046480560412174..comments2024-03-02T10:24:11.056+05:30Comments on SharePoint, ASP.Net, JQuery, SQL Solutions: Check/Uncheck all checkboxes in JqueryAnonymoushttp://www.blogger.com/profile/11277148819153438060noreply@blogger.comBlogger12125tag:blogger.com,1999:blog-3893582346020662759.post-26395958145475371012014-04-18T08:11:27.548+05:302014-04-18T08:11:27.548+05:30Can you do this in A SharePoint DataView?Can you do this in A SharePoint DataView?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3893582346020662759.post-80116010016248695492013-05-12T12:54:14.221+05:302013-05-12T12:54:14.221+05:30what if i need to do it in one ASP control "c...what if i need to do it in one ASP control "checkboxlist" <br />like : All<br /> one<br /> two<br /> three<br /><br />Anonymoushttps://www.blogger.com/profile/09122236433622535400noreply@blogger.comtag:blogger.com,1999:blog-3893582346020662759.post-21522902225827488582012-06-22T16:15:00.249+05:302012-06-22T16:15:00.249+05:30After searching a lot in Google and not finding an...After searching a lot in Google and not finding any example that worked for me, this was really usefull. ThanksSnoreply@blogger.comtag:blogger.com,1999:blog-3893582346020662759.post-13093665314268313382010-08-23T20:20:06.696+05:302010-08-23T20:20:06.696+05:30Here is my solution that doesn't care what the...Here is my solution that doesn't care what the id of the checkboxes is...It uses jQuery and will allow for multiple groups of parent/child checkboxes...<br /><br /><a href="http://tech.tiffanyandjeremy.com/Articles/Two-level-JQuery-check-and-uncheck-all-child-checkboxes-of-a-parent-checkbox" rel="nofollow">http://tech.tiffanyandjeremy.com/Articles/Two-level-JQuery-check-and-uncheck-all-child-checkboxes-of-a-parent-checkbox</a>Tiffany Biroshttps://www.blogger.com/profile/13433342666640923193noreply@blogger.comtag:blogger.com,1999:blog-3893582346020662759.post-35181808056960638472010-06-25T10:13:59.376+05:302010-06-25T10:13:59.376+05:30Hi Omer,
This is simple with this function.
For ex...Hi Omer,<br />This is simple with this function.<br />For example, in your case, there are 3 check box parent/child combination are there then simply do below.<br /><br />Combination 1:<br />1. parent check box some id [No need of passing any parent id to function as we are not using id. We just need the checked value of parent for this function].<br />2. All child check boxes are in some div or span or whatever which has the id as "child1Group".<br />The same I am repeating for all other 2 like second child check box group is "child2Group" and third one is "child3Group".<br /><br />Now, the function will be called as <br />CheckUncheckAllCheckBoxes("#child1Group", true);<br />CheckUncheckAllCheckBoxes("#child2Group", true);<br />CheckUncheckAllCheckBoxes("#child3Group", true);<br /><br />Remember, the second parameter true is just for example, this will be the actual value of parent check box of that specific group.<br /><br />Hope this helps. Let me know, if you have any questions still or problems in using it.<br /><br />thanks<br />-Praveen.Anonymoushttps://www.blogger.com/profile/11277148819153438060noreply@blogger.comtag:blogger.com,1999:blog-3893582346020662759.post-52858771088709486712010-06-24T12:42:48.306+05:302010-06-24T12:42:48.306+05:30Hi All,
Nice post. I have multiple parents and man...Hi All,<br />Nice post. I have multiple parents and many check-box under them, every parent/child has unique id. I want to check/un-check all child when i click on its respective parent.<br /><br />ThanxOmer Yaqubnoreply@blogger.comtag:blogger.com,1999:blog-3893582346020662759.post-63393287735403285812010-06-22T11:08:26.975+05:302010-06-22T11:08:26.975+05:30Hi Gumba,
I have updated post with the toggle all ...Hi Gumba,<br />I have updated post with the toggle all check box which depends on the selection of the child check boxes. So, you can find it under the UPDATED section in this post. Thanks and let me know, if you need any more help.<br /><br />-Praveen.Anonymoushttps://www.blogger.com/profile/11277148819153438060noreply@blogger.comtag:blogger.com,1999:blog-3893582346020662759.post-86254172696075632842010-06-22T02:33:33.271+05:302010-06-22T02:33:33.271+05:30So Given this example..How do I add to it and hand...So Given this example..How do I add to it and handle users manually unchecking child checkboxes which would then require me to uncheck the checkall box..for instance..If I click checkall and then decide I want to uncheck one..the check all box should reflect that and uncheck itselfUnknownhttps://www.blogger.com/profile/04840757625766222531noreply@blogger.comtag:blogger.com,1999:blog-3893582346020662759.post-77644917956956003842009-10-07T12:09:42.279+05:302009-10-07T12:09:42.279+05:30Hi,
This post is very helpful and the code snippe...Hi,<br /><br />This post is very helpful and the code snippet provided works great.Most of the snippets demonstrate how to check all the checkboxes on click but this post will be helpful in achieveing the check/uncheck of selected checkboxlist on click of parent of checkbox<br /><br />Thanks its saved hours of time <br /><br />Nice workLakshminoreply@blogger.comtag:blogger.com,1999:blog-3893582346020662759.post-32563207703679603652009-09-25T11:16:34.109+05:302009-09-25T11:16:34.109+05:30Hi,
Thanks for the reply,havent tried the snippet...Hi,<br /><br />Thanks for the reply,havent tried the snippet earlier but was under impression was using similar functionality like this<br />[code]<br /> $(document).ready(function() {<br /> $('#chkAll').click(<br /> function() {<br /> $("INPUT[type='checkbox']").attr('checked', $('#chkAll').is(':checked'));<br /> });<br /> });[/code]<br /><br />so in quick hurry got overlooked,Thanks for the clarificationAnushkanoreply@blogger.comtag:blogger.com,1999:blog-3893582346020662759.post-22883803186377329522009-09-25T10:50:12.498+05:302009-09-25T10:50:12.498+05:30Hi Anushka,
It's simple. That is why I wrote m...Hi Anushka,<br />It's simple. That is why I wrote my function compatible to all the requirements. What you need to do is, just pass your check box list ID as the first argument of the function. For example,<br />your check box list id is something like this "cblName" then your Jquery function call should look like this.<br />CheckUncheckAllCheckBoxes("#cblName", true);<br />Note: For server side controls you need to pass first parameter like CheckUncheckAllCheckBoxes("#<%=cblName.ClientID %>", true");<br />Then it will look for the check boxes only which are in the scope of that ID. <br />Hope this helps!!!<br />Please let me know, if you have any issues or questions with it.<br /><br />-Praveen.Anonymoushttps://www.blogger.com/profile/11277148819153438060noreply@blogger.comtag:blogger.com,1999:blog-3893582346020662759.post-75985432791589586542009-09-25T08:28:27.399+05:302009-09-25T08:28:27.399+05:30Hi,
Can you please help on how to check only cert...Hi,<br /><br />Can you please help on how to check only certain which are under certain checkboxlist ,I think the above solution checks all the checkbox in the form.I tried different ways but didnt work <br /><br />ThanksAnushkanoreply@blogger.com