1

I am using jQuery UI MultiSelect Widget for one my my pick lists. Then problem is that I am having is when I use "display: none;" in the select This menu does not hide by default and it is always being displayed. I have a header file where I have this menu on all the pages but I want to hide it by default and show it when every I need it.

The problem is the "display: none;" is not hiding it. How can I get the MultiSelect Widget to not ignore the display: none?

thanks for your help

3
  • Have you tried autoOpen true/false? Commented Jan 31, 2014 at 23:32
  • @TimSPQR thanks for your help but autoOpen will open the menu not make it invisible. I want to make it invisible by default and display it when needed. Commented Feb 1, 2014 at 16:16
  • I've never used the multiselect widget, but have extensively used the jQuery dialog. This page that I put together shows its use two ways (sites.google.com/site/timspqr/home/programs/javascript-code/…). The upper way is the standard way - the dialog opens when the inline code hits it. The bottom is more interesting. You declare the dialog with the uppercode, then with the lower two lines you can open(display) and close(hide) it very simply. There seems to be a consistency in jQuery, and I wonder if it is the same in the MultiSelect. Commented Feb 1, 2014 at 17:46

1 Answer 1

2

<select style="display:none;"> will not work. You have 2 options

assign a class to <select> and apply css-style to that class with display:none

or

wrap <select></select> with a <div></div> and apply the css-style display:none to that div

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.