.click event and checkboxes
<p>In my script I'm using .click event. When I click my checkbox, value is sending, but there isn't tick in it. So using jquery I "clicked" checkbox, but there isn't working. There is the code: </p>

<pre><code>$(".checkinput").click(function() {

var id = $(this).attr('id')
var dumpthis = $(this);
var data = "id=" + id;
$.ajax({
 type: "POST",
 url: "change_achievement.php",
 data: data,
 success: function()
 {
   if(dumpthis.attr('checked')
{
 dumpthis.attr('checked', true);
}
else
{
 dumpthis.attr('checked', false);
}
 }
});

return false;
});
</code></pre>
