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 Link to comment https://forums.phpfreaks.com/topic/161066-solved-getelementbyid-brainfart/ Share on other sites More sharing options...
severndigital Posted June 5, 2009 Author Share Posted June 5, 2009 i got it .. took out the () ... Link to comment https://forums.phpfreaks.com/topic/161066-solved-getelementbyid-brainfart/#findComment-849982 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.