Object ... has no method 'append' -Need help quick
<p>I am currently attempting to write a function that applies unique ids to list item dynamically by ticking checkboxes, though I have encountered a problem, when appending the unique id to the list item I get the following error message in the console:</p>

<pre><code>Uncaught TypeError: Object SpTU 4, 183:false&lt;br /&gt; has no method 'append'
</code></pre>

<p>Here is the code that is causing the error:</p>

<pre><code>strng += name+":"+val+"&lt;br /&gt;";
var i = 1;
strng.append($({ type: "text", id:+i }));
</code></pre>

<p>I need help with this quickly so any help would be greatly appreciated!
Thanks in advance</p>

<p>-------EDIT----------
Here is the whole function so it is easier to understand, I am new to programming to it may be very messy and unproffesional.</p>

<pre><code>var dataToShow = {};
function check(tickbox){
  dataToShow[tickbox.value] = tickbox.checked == true;
  showDataOnScreen(dataToShow);


function showDataOnScreen(dataToShow){
var $strng = "";
jQuery.each(dataToShow,function(name,val){
    $strng += name+":"+val+"&lt;br /&gt;";
    var i = 1;
    $strng.append($({ type: "text", id:+i }));
    });

jQuery("#list").html(strng);
</code></pre>
