php页面加这段,选择框读取数据库时就不刷新了,相当ajax


$(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.

});

});

发表评论
留言与评论(共有 0 条评论) “”
   
验证码:

相关文章

推荐文章