title: Setting the Input Value attribute to a variable with space.
body: <p>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.</p>
  
  <pre><code>var title="A Guide to the School Bus";
  var htmlString= "&lt;div class="+title+ "&gt;"+"&lt;input type="+"button  "+"value="+title+"  onclick=loadBook()&gt;"+"&lt;/div&gt;";
  $(htmlString).appendTo(attachPoint);
  </code></pre>
  
  <p>And the attachpoint is a reference in the HTML that i got using the following.</p>
  
  <pre><code>var attachpoint=document.querySelector('.buttonAttachPoint');
  </code></pre>