[jQuery] Price levels and price breaks
I've done the following code in Coldfusion:
<cfset tilePrice = ListGetAt(productPricing.priceLevels,7)>
<cfloop from="1" to="#ListLen(productPricing.priceBreaks)-1#"
index="i">
<cfif quantity GTE ListGetAt(productPricing.priceBreaks,i) AND
quantity LT ListGetAt(productPricing.priceBreaks,i+1) >
<cfset tilePrice = ListGetAt(productPricing.priceLevels,i)>
</cfif>
</cfloop>
Now, I'd like to do the same thing, but in Javascript / Jquery. Can
someone post code that will do this same sort of query/operation in
Javascript?