Why won't function output into this jQuery selector?
<p>I'm hoping this is something silly I've done. I got a function unigref near the bottom, which (I believe) outputs a string. However, when I call the function to build a jQuery selector, I can't get it to work properly. I know that everything else works because when I use a static string the radio button is selected.</p>

<p>Here's my <a href="http://jsfiddle.net/9Edxx/" rel="nofollow">jsfiddle/9Edxx</a>. Please help.</p>

<pre><code>var checkCount = 0;
var maxChecks = 2;

$(document).ready(function() {

$("#test").click(function() {
    alert($(':checked').length);
});

$(':checkbox[name=checkbox]').change(function() {


    checkCount = $(':checkbox:checked').length;

    if (checkCount &gt;= maxChecks) {
      $(':checkbox[name=checkbox]').not(':checked').attr('disabled', true);  
        $(":radio[value="+uniqref()+"]").prop('checked', true);


    } else {
      $(':checkbox[name=checkbox]:disabled').attr('disabled', false);
    }

    if (this.checked) {
        $("td.label").append("&lt;label&gt;" + this.value + "&lt;/label&gt;");
    } else {
        $("td.label").find(":contains('" + this.value + "')").remove();
    }

});

$('#button').click(function() {
    alert(uniqref());
});


function uniqref() {
    return $("td.label").text().split('').sort().join('').replace(/\s/g, "");
}


});​
</code></pre>

<p><strong>UPDATE: The typo has been correct, but the problem still exists.</strong></p>

<p><a href="http://jsfiddle.net/9Edxx/" rel="nofollow">http://jsfiddle.net/9Edxx/</a></p>
