OZONE Asylum
Forums
DHTML/Javascript
Prototype get values of definiton list
This page's ID:
31795
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
Hi all, I have some code in Magento's checkout cart where it lists an H4 tag with class named title followed by a definition list. I would like to use Prototype to get the definition list DD & DT values and write those to a new hidden input value. What I need help with is figuring out how to use Prototype to write those tags to a hidden input as an array of data. [code] <script type="text/javascript"> Event.observe(window, 'load', function() { allNodes = document.getElementsByClassName("item-options"); for(i = 0; i < allNodes.length; i++) { var titlelist = allNodes[i].innerHTML; alert(allNodes[i].innerHTML); } }) </script> [/code] [small](Edited by [url=http://www.ozoneasylum.com/user/17]Boudga[/url] on 04-26-2010 17:58)[/small]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »