problem with live function
<p>I had this working to spec, until the specs changed. This function is now brought in via ajax .load. Easy enough to bring it in and I have all my other functions on the page that is brought in working in the parent page except this one:</p>

<pre><code>$("#CME").hide();
    $(function() {
        $("#CME1, #CMEQL, #CBT1, #CBTQL, #NYM1, #CMX1").live("change", function(){
            var checkBoxes =  $("#CME1, #CMEQL, #CBT1, #CBTQL, #NYM1, #CMX1").filter(":not(:checked)");
            if(checkBoxes.length == 0){
                $("#CME").slideDown("fast");
                } else {
                $("#CME").slideUp("fast");
                }
    });
});
</code></pre>

<p>the div "#CME" is not hidden and the .live('change', function () { isn't working. I have other similar .live functions that are working and structured the same. How do I bind the initial $(function() with .live and why isn't the .hide() working?</p>

<p>Here is the code that brings in this content </p>

<pre><code>$(function() {
        $("#subscribe").click(function () {
            $("#singleContent").load('purchaseForm.php #formContent', function()
            {
                $('[class^=toggle-item]').hide();
                $('[class^=link]').click(function(e) {
                    $('.toggle-item-' + this.className).slideToggle("fast");
                    $('span',this).text(function(i,txt) {
                        return txt === "Learn More..." ? "Close" : "Learn More...";
                        e.preventDefault();
                    });
                });//toggle

                $(function() {
                   var $add = $('input.add');
                   $add.click(function() {
                       $add.removeAttr('checked');
                       $(this).attr('checked', true);
                   });//$add
                });//function
            });//load
        });//#subscribe
</code></pre>

<p>I think I may have just answered my own question</p>

<p>EDIT - I got it working by binding it (placing it in) to the .load function</p>
