Adapting a Mootols add event change function to a jQuery change funciton
<p>I need to adapt a mootols function to work with jquery, and I'm not sure I have the right syntax, I don't get any errors, it's that the function does not work:</p>

<pre><code>jQuery('#'+the_id).change(function(){
    if(jQuery('#'+the_id).getParent('.select-container')){
        interestSet = jQuery('#'+the_id + ' option:selected').text();
        if(interestSet == '') {
            jQuery('#'+the_id).getPrevious('.mask').set('html',selectText);
        } else {
            jQuery('#'+the_id.replace(/ID/,"Mask")).html(interestSet);
        }
    }
}); 
</code></pre>

<p>Is the syntax ok?</p>

<p>Here is the original function which uses a Mootools event:</p>

<pre><code>$$('#interestGroupID').addEvent('change', function(e){
            if(this.getParent('.select-container'))  {
                interestSet = jQuery('#interestGroupID option:selected').text();
                if(interestSet == '') {
                    this.getPrevious('.mask').set('html',selectText);
                }
                else {
                    jQuery('#interestGroupMask').html(interestSet);
                }
            }
        });
</code></pre>

<p>Basically, I need to replicate that addEvent change in jquery.</p>
