Problem changing the value of a hidden select #321

Closed
alesnav opened this Issue Nov 11, 2013 · 3 comments

Comments

Projects
None yet
2 participants
@alesnav

alesnav commented Nov 11, 2013

Hello!

I added a comment in a very old issue (#58), but I think that open a new one will be easier.

I am using Fancybox, but the problem is the same than tabs. I must init selectmenu this way:

$("select").hide();
$("select").peek("selectmenu", { inline: true });

The first line is needed because selectmenu function initialized from peek won't hide select elements on the page.

My second question (I tried to get it done, but I couldn't :( ) is: how I can change the value of a select that is already hidden?

I tried with:

$('select#fsector').selectmenu("index", 0);

And it changes the value, yes, but visually it does not select the value. Then, I tried to do it using Peek... but I don't know how to use it for this purpose...

Any idea?

Thanks!!

@fnagel

This comment has been minimized.

Show comment Hide comment
@fnagel

fnagel Nov 20, 2013

Owner

Thanks for opening a new issue, I was not aware of the new comment on the old one.

All you code snippet seem correct and I should work as you expect. I would say there is some side effect or project specific issue that breaks your code. I willing to help you but I would ask for a demo fiddle or something I could test and edit without building a similar setup myself. Please take a look at #61 -- it's pretty simple to post a minimal demo fiddle.

Yours
Felix

Owner

fnagel commented Nov 20, 2013

Thanks for opening a new issue, I was not aware of the new comment on the old one.

All you code snippet seem correct and I should work as you expect. I would say there is some side effect or project specific issue that breaks your code. I willing to help you but I would ask for a demo fiddle or something I could test and edit without building a similar setup myself. Please take a look at #61 -- it's pretty simple to post a minimal demo fiddle.

Yours
Felix

@fnagel

This comment has been minimized.

Show comment Hide comment
@fnagel

fnagel Feb 18, 2014

Owner

Any feedback on this issue?

Owner

fnagel commented Feb 18, 2014

Any feedback on this issue?

@fnagel

This comment has been minimized.

Show comment Hide comment
@fnagel

fnagel Jun 1, 2014

Owner

Closed as no feedback was given.

Owner

fnagel commented Jun 1, 2014

Closed as no feedback was given.

@fnagel fnagel closed this Jun 1, 2014

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