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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package jquery-select-suggest

jquery-selectSuggest

Create a Bootstrap-powered jQuery dropdown for server-side suggestions (typeahead with selectable items). Works with a simple HTTP endpoint returning JSON.

Table of contents

Overview

jquery-selectSuggest enhances a text input to fetch and display suggestions from your backend and lets users pick one or many items. It ships as a single jQuery plugin with no custom CSS — it reuses Bootstrap utilities and components.

Stack and requirements

Installation (CDN and self-hosted)

No additional CSS is required; Bootstrap classes are used.

CDN example (Bootstrap 5 + jQuery + optional Bootstrap Icons):

CDN for the plugin itself:

Self-hosted (no CDN):

Locales can be loaded before plugin initialization. A locale file sets window.bsSuggestTranslations; the plugin merges defaults first, then the loaded locale, then manually provided translations.

Included European locales: be-BY, bg-BG, bs-BA, ca-ES, cs-CZ, cy-GB, da-DK, de-DE, el-GR, en-GB, es-ES, et-EE, eu-ES, fi-FI, fr-FR, ga-IE, gl-ES, hr-HR, hu-HU, is-IS, it-IT, lb-LU, lt-LT, lv-LV, mk-MK, mt-MT, nb-NO, nl-NL, pl-PL, pt-PT, ro-RO, ru-RU, sk-SK, sl-SI, sq-AL, sr-RS, sv-SE, tr-TR, uk-UA.

Installation via Composer

Composer is not required to use the plugin in the browser. The JavaScript you need lives in dist/. In this repository, Composer is primarily used for the PHP demo to fetch Bootstrap and jQuery into vendor/ (see “Run the demo locally”).

If you still want to manage this plugin in a PHP project via Composer, you have two options:

1) Packagist (when available)

2) VCS repository (use this Git repo directly)

Replace https://github.com/REPO_OWNER/jquery-bs-suggest with the actual Git repository URL of this project.

Notes

Usage

html

Place the input field where you want the dropdown to appear.

javascript

Quick start example (full page):

Options

Minimal, clear options grouped by purpose.

Notes:

Preselection with selected:

Rendering model:

Styling and theme compatibility:

Multiple button layout:

Dropdown header actions (to avoid ambiguous "x"):

Removal from selection (multiple mode):

Deprecated (backward compatibility):

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. Optionally you can provide:

When the method val is called, only the parameter value is sent to the server.
For single select the server should return a single item object.
For multiple select the server will send value[] as an array of IDs (jQuery serializes arrays like this) and expects an array in items. The optional fields subtext and formatted are supported here as well — if formatted is provided, it is used directly for the suggestion list. In single select mode, the button also prefers formatted/formatItem; in multiple mode the button uses text‑only chips.

backend example

A complete example can be found in the demo folder.

Examples for multiple display

Using modern chips/tiles (default rendering):

Using custom layout via formatItem (applies to the suggestion list and also to the single‑select button when no formatted is provided by the server):

Scripts

Package manager notes:

Environment variables

Run the demo locally

There are two ways to try the demo in demo/:

1) Use the included Composer setup (fetches Bootstrap and jQuery into vendor/ as referenced by the demo HTML):

2) Or open the demo with CDN assets by modifying the <link>/<script> tags in demo/index.html to use the CDN URLs shown in the Installation section.

Project structure

Tests

License

This project is licensed under the MIT License — see LICENSE for details.

Changelog

See CHANGELOG.md for a detailed list of changes. Current version: 1.1.7 (2026-05-07).

Support this project

If this project helps you, feel free to support its development:

☕ Buy me a coffee via PayPal


All versions of jquery-select-suggest with dependencies

PHP Build Version
Package Version
Requires components/jquery Version ^3
twbs/bootstrap Version ^4 || ^5
twbs/bootstrap-icons Version ^1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package webcito/jquery-select-suggest contains the following files

Loading the files please wait ...