PHP基础PHP教程php框架JavaScript
asp.netAJAX正则表达式ASP
if ($('#myDiv).length) { // your code }
Simple, but not obvious.