<bdo id='7zPcF'></bdo><ul id='7zPcF'></ul>
<tfoot id='7zPcF'></tfoot>
    <legend id='7zPcF'><style id='7zPcF'><dir id='7zPcF'><q id='7zPcF'></q></dir></style></legend>

    <small id='7zPcF'></small><noframes id='7zPcF'>

    <i id='7zPcF'><tr id='7zPcF'><dt id='7zPcF'><q id='7zPcF'><span id='7zPcF'><b id='7zPcF'><form id='7zPcF'><ins id='7zPcF'></ins><ul id='7zPcF'></ul><sub id='7zPcF'></sub></form><legend id='7zPcF'></legend><bdo id='7zPcF'><pre id='7zPcF'><center id='7zPcF'></center></pre></bdo></b><th id='7zPcF'></th></span></q></dt></tr></i><div id='7zPcF'><tfoot id='7zPcF'></tfoot><dl id='7zPcF'><fieldset id='7zPcF'></fieldset></dl></div>

      单击单选按钮清除下拉选择

      Clear dropdown selection on radio button click(单击单选按钮清除下拉选择)

              <tfoot id='WasLh'></tfoot>
                <bdo id='WasLh'></bdo><ul id='WasLh'></ul>
                  <tbody id='WasLh'></tbody>

                <i id='WasLh'><tr id='WasLh'><dt id='WasLh'><q id='WasLh'><span id='WasLh'><b id='WasLh'><form id='WasLh'><ins id='WasLh'></ins><ul id='WasLh'></ul><sub id='WasLh'></sub></form><legend id='WasLh'></legend><bdo id='WasLh'><pre id='WasLh'><center id='WasLh'></center></pre></bdo></b><th id='WasLh'></th></span></q></dt></tr></i><div id='WasLh'><tfoot id='WasLh'></tfoot><dl id='WasLh'><fieldset id='WasLh'></fieldset></dl></div>

                <legend id='WasLh'><style id='WasLh'><dir id='WasLh'><q id='WasLh'></q></dir></style></legend>

                <small id='WasLh'></small><noframes id='WasLh'>

                本文介绍了单击单选按钮清除下拉选择的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我有一组单选按钮.选择主要时,主要公司字段将隐藏.我也想在这个时候清除下拉选择.我该怎么做?

                I have a set of radio buttons. When primary is selected, the Primary Company field is hidden. I would also like to at this time clear the drop down selection. How can I do this?

                <p>
                        <label>Company Type:</label>
                        <label for="primary"><input onclick="javascript: $('#sec').hide('slow');" type="radio" runat="server" name="companyType" id="primary" checked />Primary</label>
                        <label for="secondary"><input onclick="javascript: $('#sec').show('slow');" type="radio" runat="server" name="companyType" id="secondary" />Secondary</label>
                        <div id="sec">
                        <label for="primary_company">Primary Company:</label>
                            <%= Html.DropDownList("primary_company", Model.SelectPrimaryCompanies, "** Select Primary Company **") %>
                        </div>
                
                    </p>
                

                推荐答案

                可以像这样清除选择(即选择第一个选项):

                You can clear the selection (that is, select the first option) like so:

                $("#primary_company").find('option:first')
                                     .attr('selected','selected');
                

                这篇关于单击单选按钮清除下拉选择的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                Toggle HTML radio button by clicking its label(通过单击标签来切换 HTML 单选按钮)
                Javascript how to change radio button label text?(Javascript如何更改单选按钮标签文本?)
                JavaScript radio button confirmation(JavaScript 单选按钮确认)
                How can I automatically select specific radio buttons with Greasemonkey?(如何使用 Greasemonkey 自动选择特定的单选按钮?)
                AngularJs. Is it possible to deselect HTML “radio” input by click?(AngularJs.是否可以通过单击取消选择 HTML“收音机输入?)
                Checking Value of Radio Button Group via JavaScript?(通过 JavaScript 检查单选按钮组的值?)
              • <legend id='Sh4U8'><style id='Sh4U8'><dir id='Sh4U8'><q id='Sh4U8'></q></dir></style></legend>

                  <small id='Sh4U8'></small><noframes id='Sh4U8'>

                • <i id='Sh4U8'><tr id='Sh4U8'><dt id='Sh4U8'><q id='Sh4U8'><span id='Sh4U8'><b id='Sh4U8'><form id='Sh4U8'><ins id='Sh4U8'></ins><ul id='Sh4U8'></ul><sub id='Sh4U8'></sub></form><legend id='Sh4U8'></legend><bdo id='Sh4U8'><pre id='Sh4U8'><center id='Sh4U8'></center></pre></bdo></b><th id='Sh4U8'></th></span></q></dt></tr></i><div id='Sh4U8'><tfoot id='Sh4U8'></tfoot><dl id='Sh4U8'><fieldset id='Sh4U8'></fieldset></dl></div>
                  • <tfoot id='Sh4U8'></tfoot>
                      <bdo id='Sh4U8'></bdo><ul id='Sh4U8'></ul>

                            <tbody id='Sh4U8'></tbody>