Search
 
SCRIPT & CODE EXAMPLE
 

HTML

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>");
Comment

PREVIOUS NEXT
Code Example
Html :: HTML Computer Code Elements 
Html :: show html in laravel template 
Html :: fondos en html5 
Html :: reverse timer in html 
Html :: allow geolocation local development 
Html :: Cause Dropbox To Behave Like A CDN (Content Delivery Network) For IMG/GIF Files 
Html :: how to give h1 h2 in r studio 
Html :: icon not shwing in goole search 
Html :: 6 May 2492. 
Html :: which attribute use in html show decided password site:stackoverflow.com 
Html :: jQuery CDN | jQuery Migrate | jQuery UI | jQuery Mobile Latest Version 
Html :: github fold all review files 
Html :: exemple liens hypertextes 
Html :: difference between section and div 
Html :: email validation html pattern 
Html :: requests_html response status 
Html :: javaprov 
Html :: remove line the link css 
Html :: telerik radgrid export to excel keep leading zeros 
Html :: bootstrap loader in os 
Html :: posh-ssh key authentication 
Html :: html metatags for facebook 
Html :: bootstrap modal delay closing on click outside 
Html :: salesforce lightning aura add red asterick for <lightning:input 
Html :: service run on start 
Html :: contact form 
Html :: xml to html converter 
Html :: How to link Excel sheet to HTML page 
Html :: error: serializer for text/html; charset=utf-8 doesn 
Css :: remove bullets from list css 
ADD CONTENT
Topic
Content
Source link
Name
4+6 =