Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using select dropdown list instead of a link #103

Open
malalakaz opened this issue Jun 9, 2015 · 0 comments
Open

using select dropdown list instead of a link #103

malalakaz opened this issue Jun 9, 2015 · 0 comments

Comments

@malalakaz
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant