How to use <select> with blank selected?


#1

Hello all,

I’m using this ;
<%= select(“subdivision”, “id”, @subdivisions, { :include_blank => true
})
%>

But the selected value is actually the 2nd row of the options???
How do I get the first ‘blank’ row to be selected ?

Thanks.


#2

Should work.

Are you using firefox? If so you need to hit CTRL+F5 to do a hard
refresh that will reset all the form elements (they don’t automatically
get reset with a plain F5)

  • Jamie