Philip435 0 Newbie Poster

Hey Im going to make an ajaxlogin for my website but ive ran into a problem with the jquery submit() funktion.

If i put my login form in the body of the index and use $('form').submit() it works perfect but.

when I have the login form in another php page and include the page with ajax load() and then tries to use $('form').submit() it seams that jquery doesnt detect the form and cant execute the funktion.

Anyone knows of this problem and have a good solution?? I know how I can get around this problem using regular javascript but am trying to stick with jquery so plz help.