Julius Lucks schrieb:
> The post is working meaning that if I uncomment the alert(html); line
> in the post function, I see the html form (as returned by the
> /save_record url) now populated with a brand new record_id which is
> not 0. However, the existing html form still has the record_id as 0,
> meaning that the line
>
> var new_record_id = $("input#record_id",html).val();
>
> seems to be accessing the current DOM, and not the returned html. Any
> hints as to why this may be the case?
Using selectors by id does ignore the given context. You could instead
try this:
var new_record_id = $("[EMAIL PROTECTED]", html).attr('value');
Hope that helps.
--
Jörn Zaefferer
http://bassistance.de
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/