curiouswebster
asked on
Need to use jQuery to toggle this jqGrid checkbox
I have the following code which I need to understand, then be able to toggle the checbox to unchecked. I don't understand how at the same time there can be a filter, a return value, hiding and adding attributes, and WAI-ARIA support to boot.
So when I need to make the checkbox unchecked, I am confused.
I have not yet read about the t3() function, so a little explanation of that may help.
$("span[t3parent=global_se lect]", $("#mydata tr.jqgrow").filter(functio n (index) {
return $("td[aria-describedby=myd ata_Permit Access][ti tle=true]" , this).length == 0;
}).hide().attr("directacce ss", "no")).attr("t3parent", "root");
So I need to do all this AND toggle the checkbox to unchecked.
Any help or explanation would be appreciated.
Thanks!
So when I need to make the checkbox unchecked, I am confused.
I have not yet read about the t3() function, so a little explanation of that may help.
$("span[t3parent=global_se
return $("td[aria-describedby=myd
}).hide().attr("directacce
So I need to do all this AND toggle the checkbox to unchecked.
Any help or explanation would be appreciated.
Thanks!
ASKER
No. I do not think so in that code above. But I started to write the following after drilling down with Firebug and was told I was "getting close" after writing the following:
$("td a.checkbox[aria-describedb y=mydata_P ermitAcces s][title=t rue]").att r("checkbo x", "unchecked");
I think my problem was here: attr("checkbox", "unchecked");
I wasn't sure of the syntax for the attr() function and think I do indeed need to find how to reference the class there. Not sure how...
$("td a.checkbox[aria-describedb
I think my problem was here: attr("checkbox", "unchecked");
I wasn't sure of the syntax for the attr() function and think I do indeed need to find how to reference the class there. Not sure how...
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Great. But where do I fit in the initial code in this post? I get confused by the return value, etc.
i have only modified the code given in your previous comment
ASKER
Thanks for the help!
Is there a reference to checkbox object in the code above?