[jQuery] Input type

[jQuery] Input type


Hi,
How do I detect an input type?
Something like:
if ($('#birth_date').type() == 'text'){
// do something
}
Thanks,
Emilio