$(document).ready(function() {
$(‘#submit’).on(‘click’, function() {
var url = ‘new.php’; // the page containing Hotel list only
$(‘#div-hotel-list’).load(url); // the div in the main page where hotel list should be displayed.
});
});
$(document).ready(function() {
$(‘#submit’).on(‘click’, function() {
var url = ‘new.php’; // the page containing Hotel list only
$(‘#div-hotel-list’).load(url); // the div in the main page where hotel list should be displayed.
});
});
文章来源:智云一二三科技
文章标题:php页面加这段,选择框读取数据库时就不刷新了,相当ajax
文章地址:https://www.zhihuclub.com/151002.shtml