Home › Forums › JavaScript › Am I doing Something Wrong In This Function??? › Re: Am I doing Something Wrong In This Function???
July 12, 2012 at 5:11 pm
#105986
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');
}