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

Select manually an item #7

Closed
kktos opened this issue Oct 5, 2013 · 3 comments
Closed

Select manually an item #7

kktos opened this issue Oct 5, 2013 · 3 comments
Assignees
Milestone

Comments

@kktos
Copy link
Contributor

kktos commented Oct 5, 2013

Hum, that's possible, but not straightforward.
you have to find the ".heapBox" related to your select. Depending how you inserted it, it will be before, after or inplace.

$myHeapBox= ....find('.heapBox');

then select the option (by value) you want

$myHeapBox.find('.heapOptions [rel="'+ theValueYouWantToSelect +'"]').click();

So a shortcut would be nice to have. Not to mention it will be safer as I'm relying on your structure here and if you change it, my code will break.

Cheers and kudos for the good job you did on this simple and efficient dropdown.

@kktos
Copy link
Contributor Author

kktos commented Oct 5, 2013

found the proper way to find the heapBox object.... But same comment here applies, not safe.

$elem.data('plugin_heapbox').heapBoxEl

@kktos
Copy link
Contributor Author

kktos commented Oct 5, 2013

ok, I did it
here: #8

@FilipBartos
Copy link
Owner

Hi!

nice, thank you for your work. I'll review your code soon and release it in upcoming version.

Have a nice day,
Filip

@ghost ghost assigned FilipBartos Oct 6, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants