if ($("#yourDivTag")){
// do something here
}
No its not .. there might be other ways of doing it, but simplest way is using the length property. See example below:
if ($("#yourDivTag").length > 0){
// do something here
}
if ($("#yourDivTag")){
// do something here
}
No its not .. there might be other ways of doing it, but simplest way is using the length property. See example below:
if ($("#yourDivTag").length > 0){
// do something here
}