单击multidropdownlist时如何关注搜索框 [英] How to focus on search box when click multidropdownlist
问题描述
嗨
i想要在支票和搜索框内下拉列表,当我点击下拉箭头标记
然后我想专注于搜索框
这里我的代码
hi
i want to dropdownlist inside check and search box and when i click dropdown arrow mark
then i want to focus on search box
here my code
Register Assembly="MultiDropDown" Namespace="MultiDropDownLib" TagPrefix="MultiDropDownLib"
< MultiDropDownLib:MultiDropDown
ID =MultiDropDown2
runat =server
DropdownOnMouseOver =true
TextBoxClass =textbox1
ImageButtonClass =imagebutton1
TooltipClass =tooltip1
DropdownClass =dropdown1
SelectAllAtStartup =true
DropdownOnFocus =true
/>
< MultiDropDownLib:MultiDropDown
ID="MultiDropDown2"
runat="server"
DropdownOnMouseOver="true"
TextBoxClass="textbox1"
ImageButtonClass="imagebutton1"
TooltipClass="tooltip1"
DropdownClass="dropdown1"
SelectAllAtStartup="true"
DropdownOnFocus="true"
/ >
推荐答案
简单jquery应该为你做的伎俩:
A simple jquery should do the trick for you:
( function (){
(' # <%= MultiDropDown2.ClientID%>')。on( click , function (){
('#<%= MultiDropDown2.ClientID %>').on("click", function () {
这篇关于单击multidropdownlist时如何关注搜索框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!