html - The links in my navigation bar are not showing as "current" when they are active -
i have different background color active/current links in horizontal navigation bar. when link clicked , particular page open, supposed show different color (as in 'home page' link) not happening.
please help. hope have described myself clearly. site is: http://www.successrealization.com
example of want:- @ 1 of site http://healthsewa.org/my-site/portfolio.html , happening properly, way want it. have no idea how. code same.
i think looking way page detect "tab" on. won't magically happen actually. you'll need save clicked tab somehow after postback selected tab , set current or active.
you can using localstorage if worried modern browser. can cookie well.
here example of setting variable localstorage:
localstorage.setitem('tab', 'set ur tab index etc here'); you above when tab clicked. on page load conversely tab index.
localstorage.getitem('tab'); using jquery or js set tab active based on index set/get.
edit: setup jsfiddle , i'll complete out example if wish.
Comments
Post a Comment