There was a post in this newsgroup about a month
back titled "DYNAMICALLY diable links with CSS", so I
added two new words (plus a d) to reflect my interest...
So I have a bunch of links (comprising a class) with a certain
onClick behaviour (they are Edit links). If the user clicks
one, the others should be REALLY disabled. Turns out I can't
simply loop through all the links and (excepting the clicked on
link) do aLink[i].disabled = true (in IE 6 on Win 2K anyway)
because the onClick behaviour is not disabled. This isn't a big
problem though because I set a variable to indicate when a link
had been clicked and then return right away if another is clicked.
The thing is I'd still like the color to show disabled for all the
other links. Well, that's straightforward because I already gave
the solution above (to disable them).
And yet...since I just want the visual portion of that disabled
behaviour (how funny is that?), isn't there a simple css way to
do the same thing, rather than disable the link? Plus, since I'd
apply it to the class, I wouldn't have to loop through all the links.
Thanks,
Csaba Gabor