Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jquery.otherdropdown

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jquery.otherdropdown

A dropdown select box where choosing 'other' prompts the user for an alternate response.

  • 1.2.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-66.67%
Maintainers
1
Weekly downloads
 
Created
Source

jquery.otherdropdown

A dropdown select box where choosing 'other' prompts the user for an alternate response.

alt tag

  • Examples / Docs
  • Github
  • NPM Stats

Install

NPM

  • Follow the instructions to install Node which gives you npm.
  • Switch to project folder and run yarn add jquery.otherdropdown or npm install jquery.otherdropdown --save
  • Include jquery.otherdropdown.js after jQuery is loaded in your document.

Bower

  • Follow the instructions to install Bower.
  • Switch to project folder and run bower install jquery.otherdropdown --save
  • Include jquery.otherdropdown.js after jQuery is loaded in your document.

Add to project

  • import 'jquery.otherdropdown'; or
  • <script type="text/javascript" src="./path/to/jquery.otherdropdown.min.js"></script> after the jQuery script tag

Usage

  • Bind jquery.otherdropdown to an html select, optionally pass an options object
  • $('select').otherdropdown()
  • $('.mySelect').otherdropdown({placeholder:'Type your answer'})

Options

You can pass in options to otherdropdown as an object.

  • {value: 'more'} - Optional, Value you wish to trigger the text input. default = 'other'
  • {classes: 'noborder greybg'} - Optional, clases that the text input should have. default = null
  • {placeholder: 'Type your answer'} - Optional, placeholder text on text input. default = name

Future

  • Add Callbacks hooks
  • Add tests

Keywords

FAQs

Package last updated on 23 Nov 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc