How come the $$() function returns the value of the href when
selecting an anchor tag instead of the tag itself? ...I've had mixed
results for this btwn FF and IE6, but it's consistant in the code
below. Anyone know what I'm doing wrong here or if there's a
workaround?
div id=gallery
...@googlemail.com wrote:
Almost certainly you are seeing the results of a toString() method
kicking in for the objects (or similar).
Try ...
alert(links[0]: + links[0].id + ':' + links[0].href);
Richard Quadling.
2009/3/20 tkane2000 tkthomp...@gmail.com:
How come the $$() function
://news.bbc.co.uk/
* * * *
HTH,
--
T.J. Crowder
tj / crowder software / com
Independent Software Engineer, consulting services available
On Mar 20, 5:01 pm, tkane2000 tkthomp...@gmail.com wrote:
hmm, well, links[0] is returning a string, not the a object, so those
will both return null
...long story as to why I need to do this, but I have a set of links
that already have onClick event handlers set and I need to overwrite
them. If I could just get them to return false and do nothing else, I
could use the observe method to the the rest. Below is an example of
what I mean:
The