Answers for "how to make option values contain spaces in html"

0

how to make option values contain spaces in html

You should wrap value of attribute value in quote(Quote It). If you do 
not wrap them in quote then value after space will be considered as 
attribute itself:

$("#<%=listBrand.ClientID%>").append("<option value='"+ item.Brand + "'>" + item.Brand + "</option>");
Posted by: Guest on February-25-2021

Code answers related to "how to make option values contain spaces in html"

Browse Popular Code Answers by Language