highlight effect...display none problem
I have made a dropdown menu and when the user makes a specific selection I want this to be highlighted with a background color.
So what I do is to addClass(with a background color) to the specific element and from there use toggle('highlight').
Here is the code:
- $('#timesfrom').addClass('tslothighlight').toggle( "highlight" );
#timesfrom is the ID of the drop menu.
The problem is that when highlighting ends,jquery adds display:none which means the menu simply disappears-something I do not want.
What can I do here,so that highlighting takes place but at the same display:none is not applied to the element in question.