Forums

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

Home Forums JavaScript Am I doing Something Wrong In This Function???

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #38897
    jcoder
    Member




    #105986
    TheDoc
    Member

    It can never == ‘TH’.

    http://codepen.io/ggilmore/pen/5/1

    You can check to see if a div exists like this:

    if( ($("#yupyup").length) > 0 ) {
    alert('hello');
    }
    #105988
    jcoder
    Member

    Thanks!

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