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

Onclick of the option, open a link or document #121

Closed
castelinokelvin opened this issue May 29, 2013 · 1 comment
Closed

Onclick of the option, open a link or document #121

castelinokelvin opened this issue May 29, 2013 · 1 comment

Comments

@castelinokelvin
Copy link

Can this e done with the same code?

@acemir
Copy link
Contributor

acemir commented Mar 31, 2014

Yes! Here goes a simple example:

HTML:

<select id="openurl">
  <option value="">Please select a url</option>
  <option value="http://bing.com">Bing</option>
  <option value="http://google.com">Google</option>
  <option value="http://yahoo.com">Yahoo</option>
</select>

JS:

$('#openurl').dropkick({
  change: function (value) {
    window.open(value,'_self');
  }
});

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

No branches or pull requests

3 participants