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">
        <div class="thumb">
                <div class="listItem">
                        <a href="/asdfasdf/asdfsdf.jhtml" 
class="thumbHolder">this is some
text</a><br />
                        <a href="/asdfasdf/asdfsdf.jhtml" 
class="thumbHolder">this is some
text</a><br />
                </div>
        </div><br />
        <div class="thumb">
                <div class="listItem">
                        <a href="/asdfasdf/234234.jhtml" 
class="thumbHolder">this is some
text 21</a><br />
                        <a href="/asdfasdf/234234.jhtml" 
class="thumbHolder">this is some
text 23</a><br />
                </div>
        </div>
</div>

<script type="text/javascript">
        var links = $$('.gallery .thumb .listItem .thumbHolder');
        alert("links[0]:" + links[0]);
</script>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to