Worked fine for me:

http://paste.pocoo.org/show/48200/

Maybe you forgot to put your code in a document.ready?

- Richard

Richard D. Worth
http://rdworth.org/

On Tue, May 6, 2008 at 6:12 PM, JP <[EMAIL PROTECTED]> wrote:

>
> if i have <input id="fname" name="fname" type="text" value="" />
>
>  if I do:
>
> $('#fname').attr('type') - it returns "undefined"
>
> how can I get the "type" ?
>
>

Reply via email to