473,396 Members | 1,734 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

checkbox group checking (DOM)

Hello.

Sorry for my english :)

I got a next problem. This is a HTML.

<ul>
<li id="cat3"><input type="checkbox"
onChange="javascript:groupCatCheck('3', this)" name="categories[]"
value="3" />(3)</li>
<ul>
<li id="cat5"><input type="checkbox"
onChange="javascript:groupCatCheck('5', this)" name="categories[]"
value="5" />(5)</li>
<li id="cat8"><input type="checkbox"
onChange="javascript:groupCatCheck('8', this)" name="categories[]"
value="8" />(8)</li>
<ul>
<li id="cat15"><input type="checkbox"
onChange="javascript:groupCatCheck('5', this)" name="categories[]"
value="15" />(15)</li>
<li id="cat18"><input type="checkbox"
onChange="javascript:groupCatCheck('8', this)" name="categories[]"
value="18" />(18)</li>
</ul>
</ul>
</ul>

So, I need check all children group if I'll checking one parent
checkbox.
I'm using javascript function, that runing thru childNodes... but when
I trying to call this function inside itself all future nodes are
disappears :(
Can anybody help my mind? :(((

Aug 16 '06 #1
2 2026
uo****@gmail.com wrote:
So, I need check all children group if I'll checking one parent
checkbox.
Can anybody help my mind? :(((
In your case it might be easier to use a library that does the internal work
for you:
http://www.javascripttoolbox.com/lib/checkboxgroup/

Hope that helps,

--
Matt Kruse
http://www.JavascriptToolbox.com
http://www.AjaxToolbox.com
Aug 16 '06 #2
In your case it might be easier to use a library that does the internal work
for you:
http://www.javascripttoolbox.com/lib/checkboxgroup/

Hope that helps,
Yes!!! Really! Thank you very much!

Aug 17 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Bill | last post by:
I have a catalog of books which need to be categorized into different groups. Some of the books can be listed under more than one category. I'm creating a page where I can assign a group of books...
1
by: John Mullen | last post by:
I want to take the following HTLM and use javascript to turn on radio buttons if checkbox is checked, can I do this with javascript (maybe onClick or an array) or do i need a server side script ?...
2
by: Menelty | last post by:
I have 2 datagrids on my page and each one has a template column which has a checkbox relating to each specific row. I usually have one on the page and use javascript to make sure there has been x...
2
by: Jeff Robichaud | last post by:
Hi, This seems like a classic one (but I'm pretty new to Javascript)... I have a list of checkboxes for all the U.S. states and a checkbox "All" to check them all at once. The following...
13
by: aundro | last post by:
Hello, I've been looking on the web for a solution to this problem: I create a set of checkboxes, and 2 buttons: - one is labeled "All" - the other is labeled "None" Clicking "All" is...
17
by: jdph40 | last post by:
Question 1: In Access 97, I have a form (frmVacationWeeks) with a subform (sbfrmPostVacDates). The subform can have up to 33 records and each record has 2 checkboxes, one for approved and one for...
4
by: EManning | last post by:
Using A2003. I've got an option group that has a number of check boxes. I have coding to clear the option group if the user wishes to cancel their choice. This coding also clears the rest of the...
6
by: Daz | last post by:
Hi everyone. Firstly, I apologise if this i not what you would call a PHP problem. I get quite confused as to what lives in which realm, so if this shouldn't be posted here, please suggest where...
3
by: Patrick | last post by:
Hi, Newbish on JS here. Found this script on the web and it does what I want in FF, but works oddly in IE. When I check the box in IE nothing happens, but when I click on the body after the box...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.