SyntaxFix
Write A Post
Hire A Developer
Questions
I did like what answer above said but although, it didn't worked with me
because I was declaring these variables inside JQuery $( document ).ready()
declaring
inside
$( document ).ready()
so make sure you declare your variables inside the <script> tag not somewhere else
<script>