Javascript 滑块的jqueryajax响应
以下是我的jquery ajax响应代码:Javascript 滑块的jqueryajax响应,javascript,php,jquery,ajax,Javascript,Php,Jquery,Ajax,以下是我的jquery ajax响应代码: $.ajax({ type : "POST", cache : false, data : teststring, dataType : 'html', success: function(response) { $('#ajaxResultLeft').html(jQuery(response)
$.ajax({
type : "POST",
cache : false,
data : teststring,
dataType : 'html',
success: function(response) {
$('#ajaxResultLeft').html(jQuery(response).find('#ajaxResultLeft').html());
}
});
我有价格滑块,如果直接表单提交,滑块是工作的,如果我用ajax,意味着一切都好,除了价格滑块。由于这些窗口加载功能,我认为
$(window).load(function(){ function lakh_val (A, B) {...} function area_val (A, B) {..} });
如何在jquery ajax响应中调用这些函数。尝试将所有调用的函数都放在onload中,如下所示:
$.ajax({
type : "POST",
cache : false,
data : teststring,
dataType : 'html',
success: function(response) {
$('#ajaxResultLeft').html(jQuery(response).find('#ajaxResultLeft').html());
lakh_val (A, B);
area_val (A, B);
}
});
不清楚。我在代码中没有看到滑动条?我需要在$(window).load(function(){如果我使用ajax,它就不起作用了