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??? Re: Am I doing Something Wrong In This Function???

#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');
}