1.0.7 • Published 7 years ago
jquery.remoteselect v1.0.7
Remote Select is a super-lightweight (2kb) ajax autocomplete solution for use alongside jQuery.
Usage
Remote Select will attach itself to all <select>
elements with a remote=""
property. The remote property should be set to a URL.
<select name="example" remote="/example/autocomplete"></select>
You can pre-set its value by including an <option>
element, like so:
<select remote="/example/autocomplete">
<option value="1" selected>Current Value</option>
</select>
Your remote source should return JSON data in the format:
{
"id-1": "Label 1",
"id-2": "Label 2"
}
Prefer not to download?
No problem. Just use directly from our code site:
<link rel="stylesheet" type="text/css" href="https://code.block8.net/remote-select/jquery.remoteselect.min.css">
<script src="https://code.block8.net/remote-select/jquery.remoteselect.min.js"></script>