🔔 Alert..!! Get 2 Month Free Cloud Hosting With $200 Bonus From Digital Ocean ACTIVATE DEAL

jQuery plugin offering an interface to create complex queries.QueryBuilder can be used on advanced search engine pages, administration backends, etc. to build complex queries or filters. It is highly customisable and can be used with many jQuery widgets like autocompleters and sliders.It outputs a structured JSON of rules which can be easily parsed to create SQL/NoSQL/whatever queries.It can also directly create a SQL WHERE statement.

jSON Plugins

Documentation

jQuery QueryBuilder

npm version jsDelivr CDN Build Status Coverage Status Dependencies Status

jQuery plugin offering an simple interface to create complex queries.

screenshot

Documentation

querybuilder.js.org

Install

Manually

Download the latest release

With Bower

$ bower install jQuery-QueryBuilder

With npm

$ npm install jQuery-QueryBuilder

Via CDN

jQuery-QueryBuilder is available on jsDelivr.

Dependencies

($.extendext and doT.js are directly included in the standalone file)

Browser support

  • Internet Explorer >= 9
  • All other recent browsers

Build

Prerequisites

  • NodeJS + NPM: apt-get install nodejs-legacy npm
  • Grunt CLI: npm install -g grunt-cli

Run

Install Node dependencies npm install then run grunt in the root directory to generate production files inside dist.

Options

You can choose which plugins to include with --plugins :

# include "sql-support" and "mongodb-support" plugins grunt --plugins=sql-support,mongodb-support  # disable all plugins grunt --plugins=false

All plugins are included by default.

You can also include language files with --languages :

# include French & Italian translation grunt --languages=fr,it

Other commands

  • grunt test to run jshint/jscs/scsslint and the QUnit test suite.
  • grunt serve to open the example page with automatic build and livereload.
  • grunt doc to generate the documentation.

License

This library is available under the MIT license.


You May Also Like