title: JQuery append text to current tab
body: <p>I have dynamic code which creates tabs based on how many results are returned.  My issue is now, I want to append a tick to the tab title but I can't traverse to the <code>&lt;li&gt;</code> and <code>&lt;a href</code>> I need to append the tick to (append to the <code>&lt;a href&gt;</code>).  I've tried lots of <code>.parent()</code> and <code>.find()</code> but I just can't seem to get this correct.  What am I missing (and no doubt it's simple!)</p>
  
  <pre><code>function getData() {
  $.getJSON("getQuestions.asp?sup="+dataVal1+"&amp;prod="+dataVal2, function(data){})
      .done(function(data){               
          html = '&lt;div class="center"&gt;Supplier: '+suppName+'&lt;/div&gt;&lt;div class="center"&gt;'
          html += 'Part No &amp;amp; Description: '+partCode+' - '+partName+'&lt;/div&gt;&lt;ul&gt;'
          var len = data.length;  
          for (var i = 0; i&lt; len; i++) {
              html += '&lt;li&gt;&lt;a href="#q'+data[i].id+'"&gt;'+data[i].shortdesc+'&lt;/a&gt;&lt;/li&gt;'
          }
          html += '&lt;/ul&gt;'
          for (var i = 0; i&lt; len; i++) {
              html += '&lt;div id="q'+data[i].id+'"&gt;'+data[i].question
              html += '&lt;fieldset&gt;&lt;legend&gt;Question '+parseInt(i+1)+'&lt;/legend&gt;'
              if (data[i].evidence == '1') {
                  html += '&lt;iframe id="upload" frameborder="0" width="500" scrolling="no" src="upload.asp?supp='+suppCode+'&amp;part='+partCode+'&amp;q='+data[i].shortdesc+'"&gt;&lt;/iframe&gt;'
                  console.log(data[i].shortdesc)
              } else {
                  html += '&lt;div class="yesno" data-desc="'+data[i].shortdesc+'"&gt;&lt;span class="btn small" id="yes" &gt;YES&lt;/span&gt;&amp;nbsp;&lt;span class="btn small" id="no"&gt;NO&lt;/span&gt;&lt;/div&gt;'
              }
              html +='&lt;/fieldset&gt;&lt;/div&gt;'
          }
  
          $('#output').html(html);
          $( "#output" ).tabs();
      }); 
  };
  </code></pre>
  
  <p>I have searched thoroughly for this and it may be possible I've not hit the exact solution which may be elsewhere.</p>