jquery - Show already hidden content on select -


OK, I have the basic divs that are already being hidden through jquery and when clicking the anchor link I have used Chris Sears (CSS tricks) on the basis of window size / screen size:

I used to have Chris Sears (CSS tricks) based on window size / screen size. . The problem is that it does not work on anchor links and I have tried. Swap, tried to move the window. Location and even documents. Location (checked only) but I do not even understand why it does not work completely, with only one chicken cut with his head.

I thought that I should try to keep the document html # id as href and then maybe it will work, but no. I saw a lot of similar questions here. But I can not optimize your needs effectively.

As you can see that I'm completely green but HELP is appreciated.

If you want to show a hidden element, give an element an ID and # Specify the jQuery / CSS-type selector and ID for values ​​such as id . Then change javascript to show instead of redirect. This is a Jeffield that you have written:

Note that I also capture link clicks, so that it can work on both mobile and desktop versions: Function ShowXA (ID) // Hide hidden sections already ($ 'hidden'). CSS ('display', ''); // Selected section $ (id). Show Css ('Display', 'Block'); } // Select Select $ ("nav selection"). Change (function () {showSection ($ (this) .find ("option: selected"). Val ());}); // create links also work on $$ ("nav a"). Click (function (e) {e.preventDefault (); showSection (this.hash);});

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -