Apologies for the lack of knowledge to start with...
We have a page on our website that displays a price depending on the users selection of size width and quantity Unfortunately the dynamic calculator isn't showing the price, even though the script seems to be calculating the price...
Can anyone help me where I am going wrong :-(
When I debug in the console it displays the information correctly but just doesn't show!!!
EDIT:The javascript that should output the price is
<script>
$(function() {
$('#inputqty').keyup(function() {
var inputqty = $('#inputqty').val();
var sku = $('#selSKU').val();
$.getJSON('pricecheck.cfc?method=getPrice&returntype=JSON&sku='+sku+'&qty='+inputqty, function(data) {
$("#divPrice").html(data.displayPrice);
});
});
});
function qtyChanged(){
var inputqty = $('#inputqty').val();
var sku = $('#selSKU').val();
$.getJSON('pricecheck.cfc?method=getPrice&returntype=JSON&sku='+sku+'&qty='+inputqty, function(data) {
$("#divPrice").html(data.displayPrice);
});
};
</script>
(£4.97 incl VAT)<\/span>"}` instead of `{"displayPrice":"£4.14 excl. VAT<\/strong>
(£4.97 incl VAT)<\/span>"}` – Arun P Johny Mar 26 '13 at 11:55