Jump to content

[SOLVED] getElementById .. brainfart


severndigital

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.