SyntaxFix
Write A Post
Hire A Developer
Questions
I prefer an id descendant selector of your #form2, like this:
$("#form2 #name").val("Hello World!");
http://api.jquery.com/descendant-selector/