jquery .selectable checkboxes on change event
<p>im new here and i have a problem. i have a table of checkboxes 30x24. witch can be selected with a jquery widget selectable. but wen i use this widget on click event doesnt work anymore. </p>

<p>this is my code:</p>

<pre><code>    $(function () {
            $("#selectable").selectable({           filter:'label',
                stop: function (){

                $(".ui-selected input", this).each(function() {
            this.checked= !this.checked

        });


                }           });         });



function showUser(str,id) {

if (str=="")   {   document.getElementById("txtHint").innerHTML="";   return;   }  if (window.XMLHttpRequest)   {// code for IE7+, Firefox, Chrome, Opera, Safari   xmlhttp=new XMLHttpRequest();   } else   {// code for IE6, IE5   xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");   } xmlhttp.onreadystatechange=function()   {   if (xmlhttp.readyState==4 &amp;&amp; xmlhttp.status==200)
    {
    document.getElementById("txtHint").innerHTML=xmlhttp.responseText;
    }   }



var cb =  $("#" + id); if (cb.is(':checked')) {

  fruits.push(str)
    } else{   fruits.splice(fruits.indexOf(str), 1);
    }    xmlhttp.open("GET","ajax.php?q="+fruits+"&amp;c="+cost,true); xmlhttp.send(); }




print " &lt;td bgcolor=#c1c1c1  &gt;&lt;label&gt; &lt;input name='"; print "checks"; print "' type='checkbox'  id='"; print $id; print "'  onchange='showUser(this.value,this.id)' value='"; print $leto . "." . $mesec . "." . $dan . ":" . $ura; print "' &gt; &lt;/label&gt;&lt;/td&gt;";
</code></pre>
