jquery - Menu does not collapse on mobile when clicked on items other than Home -
i created new page, valid devices right now. tested android (ios in future).
you can take @ page here : http://www.suale.it/prova/cqc/index.html
the main problem every time change page in menu, menu not collapse itself.
i tried code in quiz.js file collapse menu, has no effect:
var x = document.getelementbyid("mytopnav"); x.classname = "topnav"; what missing here?
if understand correctly, you'd collapse menu when switching pages on mobile devices.
you added line home() function. need call same hide lines on each tab click:
function divgoto() { var x = document.getelementbyid("mytopnav"); x.classname = "topnav"; $('div[id^="div"]').hide(); $('#about').hide(); $('#goto').show(); $('#txtgoto').focus(); $("#header-content").hide(); } function about() { var x = document.getelementbyid("mytopnav"); x.classname = "topnav"; $('div[id^="div"]').hide(); $('#goto').hide(); $('#about').show(); }
Comments
Post a Comment