I am stuck once again.. I have no idea what I'm doing wrong, brain just stopped working for some reason, cough, beer.
I have a jQuery slider, that sends GET data when form is submitted. This slider is a "price range" selector, and my problem is happening with the sent GET value.

<script>
$(function() {
$( "#slider-range" ).slider({
range: true,
min: 0,
max: <?php echo $maxprice; ?>,
values: [ 0, <?php echo $maxprice; ?> ],
step: 10000,
slide: function( event, ui ) {
$( "#amount" ).val(ui.values[ 0 ] + " - " + ui.values[ 1 ] );
}
});
$( "#amount" ).val( $( "#slider-range" ).slider( "values", 0 ) + " - " + $( "#slider-range" ).slider( "values", 1 ) );
});
</script>
The problem is that in the GET data, there's two + signs. For example, selecting 450000 - 2000000 will output:
450000+-+2000000
Can someone please tell me why these two plus signs are being added?
It really can't be something so extremely complicated, but I can't find it.

New Topic/Question
Reply



MultiQuote



|