I am trying to set the value of a input button to a string variable.i.e"A Guide to the School Bus"; But when the HTML loads up only the first word comes up in the button. My code is given below. Thanks for the help.\[code\]var title="A Guide to the School Bus";var htmlString= "<div class="+title+ ">"+"<input type="+"button "+"value="http://stackoverflow.com/questions/15646820/+title+" onclick=loadBook()>"+"</div>";$(htmlString).appendTo(attachPoint);\[/code\]And the attachpoint is a reference in the HTML that i got using the following.\[code\]var attachpoint=document.querySelector('.buttonAttachPoint');\[/code\]