title: Jquery function single quotes ignored
body: <p>i have this function</p>
  
  <pre><code>    function getTextfieldonly(fieldName, id) {
          var option = jQuery('#'+fieldName+'_textfield').val();
          if (option != "") {
          $('.'+fieldName+'_ul').append('&lt;li class="'+fieldName+'_item"&gt;'+option+'&lt;span onclick="removeSelected($(this),'+fieldName+')" class="reLef buttonleistungspktr '+fieldName+'_button2"&gt;&lt;/span&gt;&lt;/li&gt;');
          $('#'+fieldName+'_list').prepend('&lt;option selected="selected" value="'+option+'"&gt;'+option+'&lt;/option&gt;');
          }else {return false}
      };
  </code></pre>
  
  <p>in row 4 i´m appending an li with a span inside</p>
  
  <pre><code>.append('&lt;li class="'+fieldName+'_item"&gt;'+option+'&lt;span onclick="removeSelected($(this),'+fieldName+')" class="reLef buttonleistungspktr '+fieldName+'_button2"&gt;&lt;/span&gt;&lt;/li&gt;');
  </code></pre>
  
  <p>if the fieldName parameter is for example "foo"</p>
  
  <p>I want the onclick inside the appended span to look like</p>
  
  <pre><code>onclick="removeSelected($(this),'foo')"
  </code></pre>
  
  <p>but it´s rendered like</p>
  
  <pre><code>onclick="removeSelected($(this),foo)"
  </code></pre>
  
  <p>So where did the singlequotes go ? 
  I need them to be there and I can´t figure out how.</p>
  
  <p>anyone has an idea ? thanks in advance</p>