JavaScript How to pass a parameter to a function -
I'm having trouble passing a parameter in the function.
Here is my code (edit stream and status in HTML document to show):
My Warnings ()
shows the event in an empty space.
2 blocks of JS code are in different sources. Do you have something to do with it?
If you say that the functions are in separate files, maybe the order of files in the problem.
Make sure The calling method ( mySpecialFunction (i);
) comes after the announcement ( function mySpecialfunction (thisIndex)
).
Edit:
In your edit you have $ (document) Already
and $ (window) .load
. Remove the last one and this will work.
.
Comments
Post a Comment