Slider Widget
Slider Widget
Hi guys,
Just signed up :)
I'm using a modified Jquery slider my code is below -
- $(window).load(function(){
function showProducts(minPrice, maxPrice) {
$(".product_container").hide().filter(function() {
var price = parseInt($(this).data("price"), 10);
return price >= minPrice && price <= maxPrice;
}).show();
}
$(function() {
var options = {
range: true,
min: 0,
max: 10000,
values: [0, 10000],
slide: function(event, ui) {
var min = ui.values[0],
max = ui.values[1];
$("#amount").val("" + min + " - " + max);
showProducts(min, max);
}
}, min, max;
$("#slider-range").slider(options);
min = $("#slider-range").slider("values", 0);
max = $("#slider-range").slider("values", 1);
$("#amount").val("" + min + " - " + max);
showProducts(min, max);
});
});//]]>
Basically all I want to do is use the £ sign instead of the dollar sign within the slider, however when i edit the code on the lines
- $("#amount").val("£" + min + " - £" + max);
the £ sign isn't accepted in the browser and I get ? symbol appear .
Can anyone help please...?
Thanks for your time
regards Nick