The difference between your first and second statements is that
document.getElementById() returns a DOM object, but $() returns a jQuery
object.

This will work (although untested):

console.debug( $("#type_1")[0].checked );

or this:

 console.debug( $("#type_1").attr("checked") );


--rob


On 6/5/07, howard chen <[EMAIL PROTECTED]> wrote:


Using the traditional method, it worka

console.debug ( document.getElementById("type_1").checked );


But this one failed...

console.debug( $("#type_1").checked );



any method to get using jquery?

thanks.




--
Rob Desbois
Eml: [EMAIL PROTECTED]
Tel: 01452 760631
Mob: 07946 705987
"There's a whale there's a whale there's a whale fish" he cried, and the
whale was in full view.
...Then ooh welcome. Ahhh. Ooh mug welcome.

Reply via email to