Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Hide element onclick but only when window is bellow 960 Reply To: Hide element onclick but only when window is bellow 960

#157666
sadunaresh
Participant

you are missing else block,

you are not mentioning what to do with #nav-tabs-list when browserwidth is other than <990px.

there are two ways first is make the div to display none when browser width is less than 990px

solution 1

or add an else block like below

Your text to link here…