11mb/ul2select

There is no license information available for the latest version (1.0.3) of this package.

A script to convert any ul/li into a selectbox

Installs: 1 556

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 1

Open Issues: 0

Language:JavaScript

1.0.3 2016-05-12 17:56 UTC

This package is not auto-updated.

Last update: 2024-09-06 19:15:09 UTC


README

A script to convert any ul/li into a selectbox

Features

  • Keyboard navigation
  • Triggers change event on ul
  • Keeps value in data-value on ul

Examples

<ul id="demo_basic" class="demo">
	<li data-value="option_1">
	  <span>Option 1</span>
	</li>
	<li data-value="option_2">
	  <span>Option 2</span>
	</li>
</ul>
$('#demo_basic').ul2select();