I have this drop down list in a modal
<div class="control-group">
<label class="control-label" for="selectInsert01">Country Name:</label>
<div class="controls">
<select id="selectInsert01" class="input-xlarge with-search" data-bind="foreach: citiesModel.countriesList">
<option data-bind="text: Name, value: CountryID"></option>
</select>
</div>
</div>
Run Code Online (Sandbox Code Playgroud)
Every time I select something and exit the modal and than open it again the selected value in the dropdown list is still selected. How do I reset the values so nothing is selected when I exit the modal
我正在努力解决我遇到的这个问题.我必须输入标签,一个用于培训开始日期,另一个用于培训结束日期.我想要做的是创建一个jQuery函数,阻止用户选择结束日期小于开始日期,反之亦然.
任何帮助将不胜感激.
<div class="control-group">
<label class="control-label">Training beggining date:</label>
<input id="StartDate" style="margin-left: 10px;" size="16" type="text"/>
</div>
<div class="control-group">
<label class="control-label">Training completion date:</label>
<input id="EndDate" style="margin-left: 10px;" size="16" type="text"/>
</div>
Run Code Online (Sandbox Code Playgroud)