Pulling in a div value for sMessage
Pulling in a div value for sMessage
kfox
Posts: 2Questions: 0Answers: 0
I'm trying to pull in the value of a div to use in the sMessage of the print function. This code works but displays a null.
"sMessage": "" + document.getElementById('classification') + "",
The div with the id of classification does exist on the web page outside of the table and has a value in it.
If I change it to document.getElementById('classification').value, I get an error when I refresh the web page that says:
Warning: TableTools must be initialised with the keyword 'new'
Any suggestions? Thank you.
"sMessage": "" + document.getElementById('classification') + "",
The div with the id of classification does exist on the web page outside of the table and has a value in it.
If I change it to document.getElementById('classification').value, I get an error when I refresh the web page that says:
Warning: TableTools must be initialised with the keyword 'new'
Any suggestions? Thank you.
This discussion has been closed.