├── LICENSE ├── README.md ├── basic_example.html ├── basic_example_json.html ├── dist ├── avatar.png ├── css │ ├── bootstrap-theme.css │ ├── bootstrap-theme.min.css │ ├── bootstrap.css │ └── bootstrap.min.css ├── fonts │ ├── glyphicons-halflings-regular.eot │ ├── glyphicons-halflings-regular.svg │ ├── glyphicons-halflings-regular.ttf │ └── glyphicons-halflings-regular.woff └── js │ ├── bootstrap.js │ └── bootstrap.min.js ├── documentation ├── dist │ ├── css │ │ ├── bootstrap-theme.css │ │ ├── bootstrap-theme.min.css │ │ ├── bootstrap.css │ │ └── bootstrap.min.css │ ├── fonts │ │ ├── glyphicons-halflings-regular.eot │ │ ├── glyphicons-halflings-regular.svg │ │ ├── glyphicons-halflings-regular.ttf │ │ └── glyphicons-halflings-regular.woff │ └── js │ │ ├── bootstrap.js │ │ └── bootstrap.min.js ├── img │ ├── adding-the-library.png │ ├── default_instance.png │ ├── default_settings.png │ ├── skeleton_structure.png │ └── tag_structure.png └── index.html ├── index.html ├── mt-select ├── css │ └── style.css ├── img │ ├── close-tag-icon-hover.png │ └── close-tag-icon.png └── js │ ├── jquery-mt-select.js │ ├── jquery-mt-select.min.js │ └── jquery.js ├── multi-instance-example.html ├── search-response.json └── search-response.php /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2014 Easy Development 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | 23 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | jQuery Multiple Tag Select 2 | ================ 3 | 4 | Impress your visitors with awesome top-notch Search Systems, they will always return ! 5 | 6 | 7 | Chatting Systems, or anything related to people should be awesome 8 | That's WHY We created jQuery MT Select, to help you innovate the Web 9 | -------------------------------------------------------------------------------- /basic_example.html: -------------------------------------------------------------------------------- 1 | 2 |
3 | 4 |Alias | 82 |Description | 83 |84 | |
---|---|---|
data-mt-request-url | 90 |The location where the information will be pulled | 91 |Read More | 92 |
Alias | 102 |Description | 103 |Default | 104 |105 | |
---|---|---|---|
data-mt-max-tags | 111 |Max Selected Options | 112 |1 | 113 |Read More | 114 |
data-mt-request-method | 117 |Request Method used to fetch the information from data-mt-request-url | 118 |POST | 119 |Read More | 120 |
data-mt-request-tag-name | 123 |Change the param name that specifies the searched term, which is send to data-mt-request-url | 124 |mt_filter | 125 |Read More | 126 |
data-mt-request-selected-tags-name | 129 |Change the param name that specifies the selected term ids / keys, which is send to data-mt-request-url | 130 |mt_selected | 131 |Read More | 132 |
data-mt-clear-on-select | 135 |Clear Search Input on Option Select | 136 |1 | 137 |Read More | 138 |
data-mt-close-on-select | 141 |Close Selection Modal on Option Select | 142 |1 | 143 |Read More | 144 |
data-mt-close-on-unfocus | 147 |Close Selection Modal on Input unfocus | 148 |1 | 149 |Read More | 150 |
data-mt-tag-input-name | 153 |Selected option name within the HTML Form | 154 |tag | 155 |Read More | 156 |
data-mt-default-values | 159 |Default Values | 160 |None | 161 |Read More | 162 |
data-mt-custom-param- | 165 |Extra Params on requests | 166 |None | 167 |Read More | 168 |
data-mt-skeleton | 171 |Change the Display Skeleton | 172 |default | 173 |Read More | 174 |
The location where the selectable options information will be pulled
189 |When retrieving the information, the request will provide these parameters
190 |Limit the max selected options using this param
202 |Param : data-mt-max-tags
203 |Default : 1
204 |Available options : any number higher than one.
205 |Specify the Request Method used to fetch the information from data-mt-request-url
212 |Param : data-mt-request-method
213 |Default : POST
214 |Change the param name that specifies the searched term, which is send to data-mt-request-url
221 |Param : data-mt-request-tag-name
222 |Default : mt_filter
223 |Change the param name that specifies the selected term ids / keys, which is send to data-mt-request-url
230 |Param : data-mt-request-selected-tags-name
231 |Default : mt_selected
232 |Clear the search input when an option is selected.
239 |Param : data-mt-clear-on-select
240 |Default : 1
241 |Close selection modal when an option is selected.
248 |Param : data-mt-close-on-select
249 |Default : 1
250 |Close selection modal when on input unfocus.
257 |Param : data-mt-close-on-unfocus
258 |Default : 1
259 |These are the values that appear by already selected when displaying the plugin
266 |Param : data-mt-default-values
267 |Default : None
268 |Format JSON Object, key : value
269 |Examples
270 |HTML Param | 274 ||
---|---|
data-mt-default-values='{"1" : "tag_name"}' | 279 ||
data-mt-default-values-='{"1" : "tag_name", "2" : "another_tag"}' | 282 ||
data-mt-default-values-='{"1" : "tag_name", "2" : "another_tag", "3" : "An another one"}' | 285 ||
And many more. | 288 |
Selected option name within the HTML Form.
298 |Using the default name, the selected options will come like, $_POST['tag'], which should be like
299 |The numbering 1,2,3 is done automatically.
300 |Param : data-mt-tag-input-name
306 |Default : tag
307 |Param : data-mt-custom-param-%param-name%="%param-value%"
314 |Examples | The Request Method is "POST", if you're using "GET" method, instead of $_POST it's $_GET
315 |HTML Param | 319 |PHP Receives | 320 |
---|---|
data-mt-custom-param-_lang="EN" | 325 |$_POST['_lang'] = "EN" | 326 |
data-mt-custom-param-user_id="1" | 329 |$_POST['user_id'] = 1 | 330 |
data-mt-custom-param-page_name="User Guide" | 333 |$_POST['page_name'] = "User Guide" | 334 |
And many more. | 337 |
Change the Display Skeleton structure, of how you're displaying the fetched results
347 |Param : data-mt-skeleton
348 |Default : default
349 |{name|boldSearch}
' + 36 | '{description|boldSearch}
' + 37 | '{name|boldSearch}
'+'{description|boldSearch}
'+"{name}
' + 31 | '{description}
' + 32 | '