title: jQuery: Wrap outputted text in span?
body: <p>I have a jQuery script that inserts an <code>&lt;input&gt;</code> after the outputted text. My question is how do I wrap the outputted text in a <code>&lt;span&gt;</code> before the <code>&lt;input&gt;</code> is called?</p>
  
  <pre><code>$(".todo-deadline").each(function() {
      $(this).html($(this).text() + "&lt;input readonly='readonly' class='hasDatepicke2' type='text' value='"+$(this).text()+"' /&gt;");
  });
  </code></pre>