Download the PHP package webcito/jquery-select-suggest without Composer
On this page you can find all versions of the php package webcito/jquery-select-suggest. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download webcito/jquery-select-suggest
More information about webcito/jquery-select-suggest
Files in webcito/jquery-select-suggest
Package jquery-select-suggest
Short Description Suggestion for Bootstrap
License proprietary
Informations about the package jquery-select-suggest
jquery-selectSuggest
Create a Bootstrap dropdown for server suggestion.
Table of contents
- jquery-selectSuggest
- Requirements
- Installation
- Usage
- html
- javascript
- Options
- Methods
- Events
- Required response for suggestion
- backend example
Requirements
- Boostrap >= 5.0
- jQuery 3.6 -> I can't name the minimum jQuery version, I developed it on jQuery 3.6.
Installation
Simply include the following script at the end of the body tag.
No further CSS needed, the current bootstrap classes are used.
Usage
html
Place the input field where you want the dropdown to appear.
javascript
Options
The following options are currently implemented.
Methods
Events
Required response for suggestion
The parameters q
and limit
are sent to the server via GET
.
q
is in this case the search string and limit
the maximum number of records to be determined.
As response the plugin expects an array
with items
and the total
number of records.
An item consists of the attributes id
and text
.
When the method val
is called, only the parameter value
is sent to the server
and only one item object is expected (no array).
backend example
A complete example can be found in the demo folder.