Testing existance of tab
<p>I am testing the existence of dynamic tabs in jQuery.  If it exists, select it, if not, create it.</p>

<p>This works 100% in FF, Chrome, etc.  I am new to jQuery, so I'm struggling to make this IE 8+ compatible.</p>

<pre><code>    // Does the tab already exist?
    var checkName = satrk;
    var tabExists = false;
    $('#tabs ul li a').each(function(i) {
        if(this.text == checkName) {
            tabExists = true;
        }
    });

    // React to existance:
    if(!tabExists){
        $("#tabs").tabs("add","details.cfm?satrk="+satrk,satrk);
        $("#tabs").tabs("select", satrk); // select tab by index
    }else{
        $("#tabs").tabs("select", satrk); // select tab by index
    }
</code></pre>

<p>I pass the tabs index to the check.   </p>

<p>Suggestions?</p>

<p>I read elsewhere that "An a element has no text property in IE." but that's not enough for me to correct my issue.</p>
