I get the following error and I can\'t find why:
TypeError: object is not a function
Here is my html:
-
Your code is working fine for me. See demo here
So make sure of the following
- Make sure that you are including the script before calling the
function.
Also, it is not a good idea to keep the ids/names and function names same
// Change the idand name here
- 热议问题