Prototype - DOM Traversal with up()
- by Jason McCreary
I have the following structure:
<form>
<div class="content">
...
</div>
<div class="action">
<p>Select <a class="select_all" href="?select=1" title="Select All">All</a></p>
</div>
</form>
I am using Prototype's up() to traverse the DOM in order to find…