工作总结 下拉单选 下拉多选

<tr>
                                <th>
                                    @LangResources.Resource.City:
                                </th>
                                <td>
                                    <select id="citysel" name="citysel" style="width:150px;height:30px;">
                                        <option value="">@LangResources.Resource.Info_All</option>
                                        @foreach (SelectListItem item in ViewBag.cityList)
                                        {
                                            <option value="@item.Value">@item.Text</option>
                                        }
                                    </select>
                                </td>
                                <th style="width:100px;">
                                    @LangResources.Resource.PictureQuery_JobDate:
                                </th>
                                <td>
                                    <table>
                                        <tr>
                                            <td style="border-bottom: 0px solid #e6e6e6;">
                                                <div class="input-group date" style="width:150px;">
                                                    <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                                                    <input id="startdate" name="" value="@ViewBag.Date" type="text" class="form-control">
                                                </div>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                                <th>
                                    @LangResources.Resource.AtmCustomer:
                                </th>
                                <td>
                                    <select id="Cartype" class="chosen-select" name="Cartype" multiple="multiple" style="width:150px;height:30px;">
                                        @foreach (SelectListItem item in ViewBag.Type)
                                        {
                                            <option value="@item.Value">@item.Text</option>
                                        }
                                    </select>
                                </td>
                                @*<th>@LangResources.Resource.bank</th>
                                    <td>
                                        <select id="Textkh" class="form-control" style="width:150px;height:30px;"></select>
                                    </td>*@
                            </tr>

 

$("#citysel").chosen(); 

下拉单选

 

<td>
                                    <select id="Cartype" class="chosen-select" name="Cartype" multiple="multiple" style="width:150px;height:30px;">
                                        @foreach (SelectListItem item in ViewBag.Type)
                                        {
                                            <option value="@item.Value">@item.Text</option>
                                        }
                                    </select>
                                </td>

$("#Cartype").attr("data-placeholder", "ALL");
$("#Cartype").chosen();

下拉多选

 

转载于:https://www.cnblogs.com/cjm123/p/9335971.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值