sparkbox/Custom-Selectbox — pull request #20 by bicknoyle (2013-01-04 15:59:09+00:00)
Title: Option value with leading zero causes JS error

If you have an option value with a leading zero (which correctly becomes a li attribute data-value with a leading zero), you're unable to select it.

The issue seems to lie with a jQuery.data() call that would return an integer-like string (ex: "05782") with the leading zero removed (presumably as an integer).

As a potential workaround, see the code below which uses jQuery.attr() to access the data-value attribute.