zurb/reveal

using select dropdown list instead of a link

malalakaz opened this issue · 0 comments

Hi,

Is there a way to use the [data-reveal-id] function using a select dropdown list instead of a link?
I've tried this, by replacing "a" by "option" but it seems to work only under Firefox (nothing's happening under Chrome).
(I know nothing about jquery)

$('option[data-reveal-id]').live('click', function(e) {
...
<select>
     <option data-reveal-id="option1" data-animation="fade">option1</option>
     <option data-reveal-id="option2" data-animation="fade">option2</option>
</select>

Any idea?

Thanks!