I've changed the 'if' statement as follows so that it gets the status directly from the html and it now works.
Thanks.
if(document.getElementById('submenu_'+target).className == 'show') {
I'm trying to get JS to swap the style class on my webpage. The following almost works. Basically it is initiated using 'onClick' in the HTML. The class is (in most cases) set to 'hide'. You click on it and the JS changes the class to 'show'. This works. Problem is, if I set the initial html to...
Anyone know how to automatically add the total number of pages in a document to the page number feature.
For example, if I have a 20 page document. I want the page numbering to go: Page 1 of 20, Page 2 of 20, Page 3 of 20....etc.
The actual page number is no problem, but I cannot find anyway...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.