/pdpWrapper

select wrapper

Primary LanguageJavaScript

Select Wrapper

Select wrapper is built to break down a select box with options into an UL with Li's for styling purposes.

Usage

  • selector => Selector for the immediate parent of the select
  • style => regular or dropdown; dropdown makes the list behave as a drop down
  • callback => function to be called after object set up
  • grabAttributes => clone option attributes to coresponding li
  • triggerOpt => trigger the option select of your choice upon instantiation
  • skipFirst => skip first option

new SelectWrapper([list]).init();