I am using jquery 1.4.4 and trinying to check if this checkbox is checked

```
<input type="checkbox" style="float:right" checked="" id="mainBond">

```

I tried several techniques but non of them worked and I get 'true' every time

```
var chkd  = ($('#mainBond:checked').val()==undefined) ? 0 :1;
var chkd  = $('#mainBond').is(':checked');
var chkd  = $('#mainBond').attr('checked');

```