asp.net mvc - Dropdown placeholder working in FF not in Chrome -


I am creating dropdown in MVC

  @ Html.dropdownlistFor (model = & gt; ; Model Model Name, New {Placeholder = "Please select one"})   

Placeholder Works fine in Firefox. But Chrome did not work in .

How to solve this?

remove placeholder and thus use drop down,

  @ html.DropDownListFor (m = & gt; m.modelname, (list & lt; SelectListItem & gt;) ViewBag.modelname, "Please select one", new {@class = "select"} )    

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -