[PHPLondon-discuss] JQuery .attr

Alex V. info at intoex.com
Sat Sep 22 11:38:11 BST 2007


Maybe sobebody can help me with jquery?

let i have <input id=element name=name type=text value="" />
if I do $('#element').attr('value') - it returns "undefined"

let i have <input id=element name=name type=text value="stuff" />
if I do $('#element').attr('value') - it returns "stuff"

what is wrong?

Regards,
Alex
http://dev.intoex.com




More information about the Phplondon-discuss mailing list