title: Escaping single-quotes javascript
body: <p>I think the below problem is something to do with escaping strings, but i'm hoping someone will confirm that.</p>
  
  <p>i need to append event.id to the submit value like so:  /Events/Edit/ + event.id. There is definitely content in the event.id property as it displays correctly the second time  i use it.</p>
  
  <pre><code>$('.ui-dialog div.ui-dialog-buttonpane')
      .append('&lt;button type="submit" value="/Events/Edit/"'  
              + event.id 
              + ' class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" &gt;&lt;span class="ui-button-text"&gt;' 
              + event.id + '&lt;/span&gt;&lt;/button&gt;');
  </code></pre>