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

cant access select menu content #138

Closed
diegolaz opened this issue Jul 26, 2013 · 9 comments
Closed

cant access select menu content #138

diegolaz opened this issue Jul 26, 2013 · 9 comments

Comments

@diegolaz
Copy link

ON small screens, when select is created based on a regular menu, the select "onchange" event, cant access the selected value.
Is there a way to control the id of the select and the name/value of the options generated?

@catalinmiron
Copy link

Please provide a live demo, maybe the select menu dropdown is not build properly.
Ty.

@diegolaz
Copy link
Author

Thanks and sorry for the delay!
HEre you can see a sample (I didn't have it online)

@catalinmiron
Copy link

Here where ? :)

@diegolaz
Copy link
Author

:D Sorry. Here: http://buuum.com.ar/test/example.html

@catalinmiron
Copy link

From what i see, the values for select > options are empty("#"), because all the links from nav are goind to nowhere ( # ) . If you have some real link attached to anchors, the jquery function will fill the option values with href attr from anchors.

If i didnt understand your issue, please respond back to me.

PS: The script that generate the select menu on small screens its working perfectly.

@diegolaz
Copy link
Author

diegolaz commented Aug 1, 2013

Thanks!! it seems the select and options get no ID, but the value is set from the menu links href (which all had #). So I put on the href values like #menu_1 #menu_2 etc, and that got to the value.
And added to the links a return false on the "click" action.
Thanks again!

@catalinmiron
Copy link

No problem, i am glad that i could help you with this.

Happy coding !

@dhg
Copy link
Owner

dhg commented Dec 11, 2014

Awesome to see this :) I know I'm late to the game on this one, (real late...), but it's rad to see the community helping each other.

@dhg dhg closed this as completed Dec 11, 2014
@catalinmiron
Copy link

@dhg my pleasure. take care !

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