I have a function in my jQuery file:
function updateHTML(blocks) {
var data = getData(blocks),
price = formatPrice(data.price),
hourly = formatCents(data.hourly),
p = $.priceSlider.settings;
$(p.processor_id).text(data.processor + ' GHZ');
$(p.ram_id).text(data.ram + ' GB');
$(p.price_id).text('$' + price);
$(p.storage_id).text(data.storage + ' GB');
$(p.bandwidth_id).text(data.bandwidth + ' GB');
$(p.blocks_id).attr('class', 'block_' + data.blocks);
$(p.hourly_price_id).text('$' + hourly + '/hr');
}
I have to print the value contain in the last line(
$(p.hourly_price_id).text('$' + hourly + '/hr');
on the index page. how can i do this?