Page is a not externally linkable
- Code, Content, and Presentation
-- JavaScript and AJAX
---- get variables from different objects in json


daveVk - 8:06 am on Aug 1, 2012 (gmt 0)


I assume the prices are in the same order as the images ?

You could rely on that, or better to name them ? say

<a href="javascript:void(0)" id="firstOne"><img src="first.png" alt="" ></a>
...
<a href="javascript:void(0)" id="Big"><img src="first.png" alt="" ></a>
...
etc

Assuming the latter then inside $(".vehicle_row a").each(function(){

var price = my_data.Range.SmallFamily[this.id].price;


Thread source:: http://www.webmasterworld.com/javascript/4480672.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com