插件 jQuery.HeapBox 中文API文档
插件 jQuery.HeapBox 中文API文档 https://github.com/FilipBartos/heapbox
HeapBox - jQuery <selectbox> (not only) replacement
HeapBox is plugin for jQuery that replace native HTML selectboxes in your webpages. HeapBox supports themes, events, callbacks, ajax and much more. See more at heapbox website.Quick install
Include the jquery and heapbox in your head:
<script src="js/jquery.js" type="text/javascript"></script> <script src="js/heapbox.js" type="text/javascript"></script>
Include one chosen heapbox theme style:
<link rel="stylesheet" href="themes/dark/css/dark.css" type="text/css" media="screen" />
Create selectbox:
<select id="mySelect"> <option value="value1">Value 1</option> <option value="value2">Value 2</option> </select>
Init heapbox:
$("#mySelect").heapbox();
Using
Basic heapbox without any configuration.
$("#mySelect1").heapbox();
See more examples at HeapBox website.
About
Heapbox is created by Filip Bartos and is licensed under MIT.