jQuery find last input and append

Posted by fire on Stack Overflow See other posts from Stack Overflow or by fire
Published on 2010-04-07T08:41:21Z Indexed on 2010/04/07 8:43 UTC
Read the original article Hit count: 260

Filed under:
|

I am trying to append an image after the last input field in a div, any ideas as to why this won't work?

$('<img src="img/loading.gif" id="loading_img" />').appendTo($(form).find('input:last'));

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery