![]() The correct function name is getElementById(): var elem = document.getElementById('ID') 2. Running the above code leads to the following Javascript error: TypeError: document.getElementByID is not a function I really need help ,wish to get back your reply. user click on read more button > show hidden content > user visit back my page > the hidden content still showing. TypoĪ typical scenario for the TypeError: "x" is not a function to occur is when there is a typo in the called function name: var elem = document.getElementByID('ID') So that I need to set cookie function to it, just for the user who visit back my page the hidden content is still showing. TypeError: "x" is not a function Examples 1. • When the called function is within a scope that is not accessible The peculiar thing of this is that the js code that shows and hides the select when touching the ons-switch works fine on iOS (tested on iPhone 5S) and on the Android Emulator, but when I deploy the app on my Samsung Galaxy S4 (Android 4.3) the script doesn't work, it doesn't hide/show the select. I have applied jquery for hide and show menu items in LOCATIONS menu as u can see in website.
0 Comments
Leave a Reply. |