Pulling in a div value for sMessage
Pulling in a div value for sMessage
![kfox](https://secure.gravatar.com/avatar/18c3ded2699109fd83b093290afa3d36/?default=https%3A%2F%2Fvanillicon.com%2F18c3ded2699109fd83b093290afa3d36_200.png&rating=g&size=120)
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.