[jQuery] form attributes undefined?
In $(document).ready() I have...
$("input").keyup(function(event){
var activeForm = $(event.target).parents('form');
$('div#debug').text( $(activeForm).attr('action'));
});
I'm trying to read attributes of the "activeForm". I keep getting
"undefined". I've tried to get the form's action, name, and id attributes.
When I output the form itself...
$('div#debug').text( $(activeForm).attr('action'));
I get "object Object".
Any insight appreciated.
Thanks.
--
View this message in context: http://www.nabble.com/form-attributes-undefined--tf4132949s15494.html#a11754367
Sent from the JQuery mailing list archive at Nabble.com.