#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2012
    Posts
    13
    Rep Power
    0

    Why dont this work


    <script> $(document).ready(function () { if ((window).width < 2024) { $("#ads").hide(); alert("hide"); } else { $("#ads").show(); alert("show"); } }); </script>

    why dont this work its using jquery
  2. #2
  3. Did you steal it?
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    13,965
    Rep Power
    9397
    Does it do anything at all? Are there any Javascript errors?
  4. #3
  5. JavaScript is not spelt java
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2011
    Location
    Landan, England
    Posts
    743
    Rep Power
    165
    Code:
    if ($(window).width() < 2024)

IMN logo majestic logo threadwatch logo seochat tools logo