severndigital Posted June 5, 2009 Share Posted June 5, 2009 here is my function function loadContent(id,inner,phpFile,formName){ document.getElementById(formName).submit(); } when i run it i get the error document.getElementById(formName).submit is not a function [break on this error] document.getElementById(formName).submit(); why isn't it swapping out the variable when it runs this line? Thanks, C Quote Link to comment Share on other sites More sharing options...
severndigital Posted June 5, 2009 Author Share Posted June 5, 2009 i got it .. took out the () ... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.