[thelist] hyperlinks on label tags?
Sarah Adams
mr.sanders at geekjock.ca
Tue Sep 26 11:00:32 CDT 2006
> I have a page that displays a list of categories with a checkbox + label
> for each category and an onChange action on each checkbox.
>
> The labels of categories that contain sub-categories are hyperlinked.
> When a user clicks the hyperlink to drill into the category, the
> checkbox is also getting checked/un-checked causing undesirable results.
>
> Is there a way to use javascript to prevent the box from being
> checked/unchecked when the label is/contains a hyperlink?
>
> Here is a sample of the current HTML ...
>
> <snip>
Hi, Ryan :)
I think this would be fairly easy to do with some DOM scripting, but I'm
wondering - what happens if the user actually wants to check the box for
the "parent" category?
--
sarah adams
web developer & programmer
portfolio: http://sarah.designshift.com
blog: http://hardedge.ca
More information about the thelist
mailing list