if($('#my-div a').length) { // anchor tag exists in my-div } else { // anchor tag not exists in my-div }
//Here {my-div} is the div name
Learn to Develop an iPhone or iPad App in 4 Weeks Learn the latest and greatest markup language in the market with Robin Nixon(HTML & HTML5) Now $29 Only(75% Off)
if($('#my-div a').length) {
Wed, 06/30/2010 - 15:03 — bandariif($('#my-div a').length) {
// anchor tag exists in my-div
} else {
// anchor tag not exists in my-div
}
//Here {my-div} is the div name