Thursday, 29 August 2013

Rails select helper, prompt: 'Select' is hidden after other option is selected

Rails select helper, prompt: 'Select' is hidden after other option is
selected

I have a select tag with prompt: 'Select' option. It generates this option
<option value="" style="display: none;">Select</option>
When any other option is chosen, this is automatically hidden. Why the
style is hidden? I would want to get back to the original Select state
after selecting any other options. What am i doing wrong? If the style is
not hidden, my problem is solved, how to get over it?

No comments:

Post a Comment