Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.markdown
Octocat-spinner-32 jquery.editable_select.js
README.markdown

jQuery Editable Select

This plugin adds a 'Customize' option to dropdowns. When that option is selected, the select element changes into a text field.

Usage

$('select.editable').editableSelect({
  title: 'Other',
  key: 'other'
});

<label for="movie">Best Movie Ever</label>
<select class="editable" name="movie" id="movie">
  <option>Back To The Future</option>
  <option>Robocop</option>
  <option>The Matrix</option>
</select>

The dropdown above will have an additional option appended to the bottom, <option value="other">Other</option>. If the user selects this, the select tag will be changed to the following input tag:

<input type="text" name="movie" class="editable" id="movie" />

License

See LICENSE in this repo.

Something went wrong with that request. Please try again.