$(document).ready(function() {
$("#client-list").on("change", function() {
var selectedValue = $(this).val();
location.reload();
});
});
如何只刷新與ID =「壓光」 DIV,而不是刷新整個頁面,平變化下拉列表中選擇嗎? Complete source i have created a fiddle或如何保持選定的下拉選項,並刷新頁面的其餘部分?如何刷新只有div = id = calender?
試試這個https://stackoverflow.com/a/21135348/ –
怎麼樣?使用[AJAX](https://en.wikipedia.org/wiki/Ajax_(編程)) –
好吧,我會檢查 – Suma