my goal is that when I want to load the page, the existing values will not be displayed. Instead, I should show "Please choose Province", "Please choose City" and "Please choose District". However, the plug-in distpicker does not seem to provide
Code:
< div data-toggle= "distpicker" id= "distpicker" >
<select class="SlectBox"></select>
<select class="SlectBox"></select>
<select class="SlectBox" id="select3"></select>
<em>*</em>
< / div >
js Code:
$(function () {
$("- sharpdistpicker"). Distpicker ("destroy");
$("-sharpdistpicker").distpicker({
province: "",
city: "",
district: "",
autoSelect: true,
placeholder: false
});
});
province: "Zhejiang", city: "Wenzhou", district: "Wencheng County",
just set the default value, which can only be used as echo, then it will be displayed. If there is no, it will not, and it will not realize the problem I mentioned