Hi,
I'm trying to get my website to the point where it is WCAG 2.0 AA compliant.
To achieve this, checkboxes need to have associated labels. If I could allocate an ID to each checkbox within the treeview I could then force the the label via the name parameter when creating the node but I cannot see how to allocate that ID.
Ie.
From this
Is there a better/any way of doing this?
Thanks
I'm trying to get my website to the point where it is WCAG 2.0 AA compliant.
To achieve this, checkboxes need to have associated labels. If I could allocate an ID to each checkbox within the treeview I could then force the the label via the name parameter when creating the node but I cannot see how to allocate that ID.
Ie.
From this
<input type="checkbox" checked="checked" />To
<span class="TreeNode" title="Details of Internal Organisational Strucutre">Internal Organisational Structure 3</span>
<input type="checkbox" checked="checked" id = "chkone"/>
<span class="TreeNode" title="Details of Internal Organisational Strucutre">
<label for = "chkone">Internal Organisational Structure 3</label>
</span>
Is there a better/any way of doing this?
Thanks