【发布时间】:2015-02-20 16:34:48
【问题描述】:
我有以下几点:
<div class="form-group">
<select required name="select_search">
<option value="Titel">Titel</option>
<option value="Autor">Autor</option>
<option value="Datum">Datum</option>
</select>
</div>
<div class="form-group">
<input type="text" class="form-control" id="search_query" placeholder="Suchbegriff eingeben"
name="search_query"/>
</div>
但我想要的是以下内容:
The inputfield shouldn't be always there, I'm looking for a solution to dynamically load the "item" under the select, when one of the first two options is chosen, the textbox should appear, when you choose the 3rd条目,然后应该会出现一个日历(Datum 表示日期,因此您应该能够在日历中选择一个日期)。也许我还得随身携带,选择框中没有预先选择任何东西,否则有点奇怪,当有选择的东西但似乎没有任何东西进入时。
【问题讨论】:
标签: javascript twitter-bootstrap dynamic-loading