Get check box value in jQuery?
<p>I need to get a check box value in jQuery.
Here is my code:</p>

<pre><code>$(document).ready(function() {
    $('input[type="checkbox"]').bind('click',function() {
        var tObj = $('#checkpermission');
        var tVal = tObj.val();
        alert(tVal);     
    });
});

$query="select * from tbl_user where username!='admin' and password!='admin' order by username limit  $eu, $limit";
$result=mysql_query($query);
while($data=mysql_fetch_array($result)) {
   &lt;td&gt;&lt;INPUT TYPE="checkbox" name="checkuser" id="checkpermission" onclick="changePage()" value='&lt;?=$data[0]?&gt;'&gt;&lt;/td&gt;
  &lt;?php
}
</code></pre>

<p>Every time I only get the first value.  What am doing wrong?</p>
