assign selected option value from database

前端 未结 3 434
花落未央
花落未央 2021-01-28 13:38

I have a form which contains a dropdown list of countries generated from database. The values are stored in database. There is an option in which user can view or update the val

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-28 13:58

    When your option tag's value attribute contains the same value as the option's text, the value attribute is not necessary -- so omit it.

    Below shows an inline condition statement.

    
        Country
        
    
    

提交回复
热议问题