» » You can enter or drop-down the selected select

 

You can enter or drop-down the selected select

Author: bamboo06 on 22-11-2016, 00:35, views: 8551

21
We know that the general select drop-down box is only selected, can not be used to enter the content. Sometimes we will encounter the drop-down box does not have to select the information item or drop-down options for a long time, we can let select into text, allowing users to enter the desired content, but also can be included in the importation of key words Also listed for quick selection.


This article will use examples to share with you a jQuery-based drop-down box plug-in, which allows users to enter the content, while the drop-down options will match the relevant options in time to support the keyboard operation, also supports html option, of course, the process of pulling down the band There are animation effects. We look at how to use.

HTML structure
The following is a basic select drop-down box.
<select id="editable-select" class="form-control">
    <option>Alfa Romeo</option>
    <option>Audi</option>
    <option>BMW</option>
    <option>Citroen</option>
    <option>Fiat</option>
    <option>Ford</option>
    <option>Jaguar</option>
    <option>Jeep</option>
    <option>Lancia</option>
    <option>Land Rover</option>
    <option>Mercedes</option>
    <option>Mini</option>
    <option>Nissan</option>
    <option>Opel</option>
    <option>Peugeot</option>
    <option>Porsche</option>
    <option>Renault</option>
</select>

In addition to the need to load the jQuery library and jquery.editable-select.js file in the source download package already.

JQuery
Only the following code will be able to achieve the traditional drop-down box into a drop-down box of the input function.
$('#editable-select').editableSelect({ 
    effects: 'slide' 
}); 

In fact, we look at the plug-in code will find that the author is the original select handle, into an input form text and a list ul. This text can be input, the drop-down option is to use ul panel, so that the option ul can add any html code, demo in the example. And then through the use of CSS and js technology can achieve drop-down pop-up, enter the search matching function.

Option settings
Filter: filter, that is, when you enter the contents of the drop-down options will match the input characters, support for Chinese, true / false, the default true.
Effects: animation, when the trigger pop-up drop-down box when the drop-down box shows the transition effect, there are default, slide, fade three values, the default is default.
Duration: drop-down box shows the transition animation speed, there are fast, slow, and digital (milliseconds), the default is fast.
event
OnCreate: Fires when input.
OnShow: Triggered when pulldown.
OnHide: Triggered when the drop-down box is hidden.
onselect: Fires when the option in the drop-down box is selected.
Event call method:
$('#editable-select').editableSelect({ 
    onselect: function (element) { 
        alert("Selected!"); 
    } 
}); 

In addition, also supports keyboard arrow keys, the Enter key, Tab key and Esc key operation.
JQuery Editable Select Project Website: https://github.com/indrimuska/jquery-editable-select

Category: Javascript / CSS / Plugins

Dear visitor, you are browsing our website as Guest.
We strongly recommend you to register and login to view hidden contents.
<
  • 0 Comments
  • 0 Articles
17 April 2017 06:29

Franie

Reply
  • Group: Guests
  • РRegistered date: --
  • Status:
 
Oh, man, I did not know this before and it's good to know this now. This will be useful for the analyze edu work that I do on a daily basis. You guys always give us helpful tips and I just love you guys for doing that.

<
  • 0 Comments
  • 0 Articles
19 June 2017 07:23

mellisa

Reply
  • Group: Guests
  • РRegistered date: --
  • Status:
 
Very good points you wrote here..Great stuff...I think you've made some truly interesting points.Keep up the good work Party Bus Prices

<
  • 0 Comments
  • 0 Articles
24 June 2017 05:50

david

Reply
  • Group: Guests
  • РRegistered date: --
  • Status:
 
I cherish the way you compose and share your corner! Exceptionally intriguing and distinctive! Keep it coming! hreflang

<
  • 0 Comments
  • 0 Articles
24 June 2017 06:58

sarah

Reply
  • Group: Guests
  • РRegistered date: --
  • Status:
 
This is an awesome rousing article.I am practically satisfied with your great work.You put truly exceptionally supportive data. Keep it up. Continue blogging. Hoping to perusing your next post. pr industry

<
  • 0 Comments
  • 0 Articles
30 June 2017 18:45

AndrewRobson

Reply
  • Group: Guests
  • РRegistered date: --
  • Status:
 
On the off chance that a client is permitted to dismiss the rundown and enter their own particular thing, at that point some of the time the following legitimate stride is to add that client's entrance to the first information approval list custom coursework help. I expect you have experienced this earlier and built up an answer, however, I couldn't discover it on your site.

<
  • 0 Comments
  • 0 Articles
3 July 2017 04:32

john

Reply
  • Group: Guests
  • РRegistered date: --
  • Status:
 
The information you have posted is very useful. The sites you have referred was good. Thanks for sharing… weightloss without diet

<
  • 0 Comments
  • 0 Articles
3 July 2017 05:52

john

Reply
  • Group: Guests
  • РRegistered date: --
  • Status:
 
This is an awesome rousing article.I am practically satisfied with your great work.You put truly exceptionally supportive data. Keep it up. Continue blogging. Hoping to perusing your next post. oahu hiking tours

<
  • 0 Comments
  • 0 Articles
8 July 2017 05:47

david

Reply
  • Group: Guests
  • РRegistered date: --
  • Status:
 
You have done a great job. I will definitely dig it and personally recommend to my friends. I am confident they will be benefited from this site mobile pr release

<
  • 0 Comments
  • 0 Articles
27 July 2017 07:13

Deya Kapoor

Reply
  • Group: Guests
  • РRegistered date: --
  • Status:
 
I appreciate that you thanks for share information independent escorts in delhi

<
  • 0 Comments
  • 0 Articles
10 August 2017 23:08

Sophie

Reply
  • Group: Guests
  • РRegistered date: --
  • Status:
 
I truly it is extremely pleasant and furthermore perfect for us. It is just genuinely. Continue composing and furthermore upon. I welcome it for talking about a truly wonderful bit of composing. Akira Capsule Red Jacket

<
  • 0 Comments
  • 0 Articles
24 September 2017 17:49

assignment writing help uk

Reply
  • Group: Guests
  • РRegistered date: --
  • Status:
 
Advancement process is novel thing where you evacuate such bugs, and I will share a decent remark here in light of the fact that it might lead you to determine your issue.<a href="https://www.hireresearchers.co.uk/assignment-writing-service/"&g
t;assignment writing help uk</a>

<
  • 0 Comments
  • 0 Articles
24 October 2017 13:50

Anna Shetty

Reply
  • Group: Guests
  • РRegistered date: --
  • Status:
 
I was very impressed by this post, this site has always been pleasant news. Thank you very much for such an interesting post
cool math games, Putlocker

<
  • 0 Comments
  • 0 Articles
2 November 2017 18:47

violet tayylor

Reply
  • Group: Guests
  • РRegistered date: --
  • Status:
 
Get on board with Exclusive Writer UK expert essay writers for essay writing service UK & assignment help, get incredible discount on your all orders of academic writing!
dissertation writer online

<
  • 0 Comments
  • 0 Articles
16 November 2017 19:16

assignment service in uk

Reply
  • Group: Guests
  • РRegistered date: --
  • Status:
 
I was very impressed by this post, this site has always been pleasant news. Thank you very much for such an interesting post

<
  • 1 Comment
  • 0 Articles
8 December 2017 21:19

JesseGal

Reply
  • Group: Members
  • РRegistered date: 8.12.2017
  • Status: Currently Offline
 
<a href="http://northwestpharmacycanada.net/">canada pharmacy online</a> <a href="http://canadianhealthandcaremallreviews.com/">Canadian Health and Care Mall Reviews</a> <a href="http://rhineinccialis.com/">Rhine Inc Viagra</a> <a href="http://canadian-health-care-mall.com/">canadian health and care mall</a> <a href="http://cialisonlinecheapest.net/">cheapest cialis dosage 20mg price</a> <a href="http://canadacialis.net/">buy generic cialis online canada</a>

<
  • 0 Comments
  • 0 Articles
9 December 2017 00:06

best vpn for torrenting reddit

Reply
  • Group: Guests
  • РRegistered date: --
  • Status:
 
thankyou for uploading this site
very informative
best vpn for torrenting reddit

<
  • 0 Comments
  • 0 Articles
31 December 2017 15:43

voilettaylor

Reply
  • Group: Guests
  • РRegistered date: --
  • Status:
 
Are you looking for professional essay writing online from real writers? You can hire an expert online to help you in writing an essay personally for your academic needs.

<
  • 0 Comments
  • 0 Articles
11 January 2018 08:32

RonaldSmina

Reply
  • Group: Guests
  • РRegistered date: --
  • Status:
 
students autodesk com autocad 2017
<a href="http://autocadbmjes.com/#">autocad software</a>
autocad software prices
download autocad
autocad 2014 price malaysia
<a href="http://autocadtfesvb.com/#">autocad 2018</a>
autocad autodesk 2017 serial number
autocad 2017
autocad2002 download

<
  • 0 Comments
  • 0 Articles
22 January 2018 12:28

Mandygeowl

Reply
  • Group: Guests
  • РRegistered date: --
  • Status:
 
online casino
real money casino
<a href="http://casinobablogames.com/">casino games</a>
real money casino

<
  • 0 Comments
  • 0 Articles
7 February 2018 07:54

StanleyKep

Reply
  • Group: Guests
  • РRegistered date: --
  • Status:
 
get viagra without anyone knowing
<a href="http://viagrautiyfeke.com/#">viagra coupons</a>
viagra weekender pill
viagra pills
cheap viagra in europe
<a href="http://viagrautiyfgke.com/#">viagra without a doctor prescription usa</a>
cheap viagra tablets
viagra without a doctor prescription usa
india viagra generic safe

<
  • 0 Comments
  • 0 Articles
13 February 2018 15:55

alas

Reply
  • Group: Guests
  • РRegistered date: --
  • Status:
 
we are happy to comment here, and we await your komantar in our blog
cara menggugurkan kandungan

Information
Comment on the news site is possible only within (days) days from the date of publication.