Skip to content

A jQuery plugin allowing HTML select tags to transform into input fields

License

Notifications You must be signed in to change notification settings

PetersonRyan/select-other

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A jQuery plugin allowing HTML select tags to transform into input fields

Resources

License

Stars

Watchers

Forks

Packages

No packages published