Forums

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

Home Forums JavaScript jquery window resize fires only once

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #40004

    the resize even below actually hides a small fixed div when the size of the window is less than 800px.but it does it only for the first time u resize .

    $(document).ready(function(){
    if(window.innerWidth<800)
    $f=$(“.hireus”).detach();

    $(window).resize(function(){
    if(window.innerWidth<800)
    $f=$(“.hireus”).detach();
    });
    });

    #110774

    oh yeah that’s right .. i tried it out and it works.But the problem comes when i try to change the font sizes when there is a window resize or change in screen size..

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.