【发布时间】:2015-09-01 05:49:56
【问题描述】:
我的网站上有一个使用 Bootstrap 3 的表单。它在 IE、Chrome 和 Safari 中运行良好,但由于某种原因,表单末尾的下拉选项元素在 Firefox 中不起作用。我尝试过不同的操作系统。所选选项不会“停留”在下拉字段中。谁能给我一个线索?
<!--------The signup form------->
<form name="signupform" id="signupform" onsubmit="return false;" class="form-signin">
<div class="form">
<div class="form-group">
<input id="username" type="text" class="form-control" onblur="checkusername()"
onkeyup="restrict('username')" maxlength="16" placeholder="Username">
<br>
<span id="unamestatus"></span>
<br>
<input id="email" type="text" class="form-control" placeholder="Email" onfocus="emptyElement('status')"
onkeyup="restrict('email')" maxlength="88">
<br>
<input id="pass1" type="password" class="form-control" placeholder="Create Password" onfocus="emptyElement('status')"
maxlength="100">
<br>
<input id="pass2" type="password" class="form-control" placeholder="Retype Password" onfocus="emptyElement('status')"
maxlength="100">
<br>
<a href="#" data-toggle="tooltip" data-placement="bottom" title="Choose the type of account you want">
<select id="accounttype" class="form-control" onfocus="emptyElement('status')"></a>
<option value="" disabled selected>
Choose Account Type
</option>
<option value="b">
I am an artist
</option>
<option value="a">
I am looking for artists
</option>
</select>
</br>
<br>
<button id="signupbtn" onclick="signup()" class="btn btn-success pull-right">
Create Account
</button>
<br>
<span id="status" style="color: white"></span>
</form>
<!--------End of form------->
【问题讨论】:
-
您是否注意到您没有关闭
divs?另外,请注意代码缩进。 -
我已经关闭了 div。我只是忘了包含该代码。感谢您的来信。
标签: javascript html twitter-bootstrap firefox