<script type="text/javascript" charset="utf-8" language="javascript">
//Slider Function
function projectrefinesearch() {
alert('yes');
var SliderSelectedMinPrice=$('#SliderSelectedMinPrice').val();
alert(SliderSelectedMinPrice);
var SliderSelectedMaxPrice=$('#SliderSelectedMaxPrice').val();
if(SliderSelectedMinPrice!=''){
postdata+='&minprice='+SliderSelectedMinPrice;
}
if(SliderSelectedMaxPrice!=''){
postdata+='&maxprice='+SliderSelectedMaxPrice;
}
$.ajax({
url:'<?php echo SITEURL; ?>ajax.php',
data:postdata,
type:'POST',
beforeSend:function() {
$('#newloader').show();
},
success: function(output) {
$('#newloader').hide();
$('.left_content_part').html(output);
}
});
}
$(document).ready(function(){
$('#priceslider #jslider-left').mouseup(function(){
var val=$('#Sliderprice').val()
var init=0;
var a=val.split(";");
init=a[0];
//alert(init);
document.getElementById("SliderSelectedMinPrice").value=init;
projectrefinesearch();
});
}
</script>
在 init 中获得价值后,它是预算的价格滑块(您可以在此处查看http://www.indianpropertyoption.com/p/search-projects/resultdocument.getElementById("SliderSelectedMinPrice").value
),并且projectrefinesearch();
无法正常工作。
document.getElementById("SliderSelectedMinPrice")
仍然null
。请帮帮我