Skip to content

Latest commit

 

History

History
28 lines (23 loc) · 1022 Bytes

README.md

File metadata and controls

28 lines (23 loc) · 1022 Bytes

Select Other

Often times a select field on a website will give inefficient options when they allow you to input any 'other' option. Typically a new input field will appear, or a constant input field will be there, only to be used when 'other' is selected.

The solution for this is Select Other, a jQuery plugin that allows dropdown select field to transform into input field on command!

Setup

<!-- Dependencies -->
<script src="jQuery.js"></script>
<!-- Select Other -->
<script src="dist/select-other.js"></script>
<link href="dist/select-other.css" rel="stylesheet"/>
<script>
	$('.select-other').selectOther("Other");
</script>

CDN

Install select-other on your website using the CDN

<script src="https://cdn.jsdelivr.net/gh/PetersonRyan/[email protected]/dist/select-other.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/PetersonRyan/[email protected]/dist/select-other.css">

License

MIT License