Displaying 1 result from an estimated 1 matches for "overtherainbow".
2005 Jul 28
2
autocomplete: how to access a child element of <li>
...laying with autocompleter, everything is working ok, but i''m
having difficulties accessing just the href attribute of <a> element,
which is a child of <li> in the autocomplete response, i.e:
<div class ="autocomplete">
<ul>
<li><a href ="overtherainbow.html">somewhere</a></li>
</ul>
</div>
i thought i could do something like
el = Event.findElement(event, ''LI'');
href = el.firstChild.getAttribute(''href'');
but that''s not it...
if anybody can awake me from my dogmatic sl...