for example I have the following:
I want to go through each div class “both” and assign its children’s attribute as value to an array of ints include checkboxes value only if they are true.
Stupid question, but I am new in this..
Meanwhile, I will see if I can come up with a solution myself 🙂
Thanks
This will give you an array containing three arrays, one for each div, containing the data id of the textarea, then the data id of the checked checkboxes:
Example result:
Demo: http://jsfiddle.net/Guffa/uF3M6/