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

wpf - ControlTemplate with changes for every class -

sonata admin - how to add ManyToOne property field in configureListfield in sonataAdmin -

sql - Return Function using Cursor -