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

python - how we can use ajax() in views.py in django? -

matlab - Using loops to get multiple values into a cell -

python - Sequence Pattern recognition with Pybrain -