小编Mar*_*vic的帖子

How to reset a dropdown list in jquery so nothing is selected?

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

3
推荐指数
2
解决办法
3万
查看次数

JQuery - 结束日期少于开始日期

我正在努力解决我遇到的这个问题.我必须输入标签,一个用于培训开始日期,另一个用于培训结束日期.我想要做的是创建一个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)

html jquery twitter-bootstrap

1
推荐指数
1
解决办法
4万
查看次数

标签 统计

jquery ×2

html ×1

twitter-bootstrap ×1