jQuery check if element exists if ( $('.target').length > 0 ) { $('.log').text('.target element exist'); } VN:F [1.9.17_1161]Rating: 0 (from 0 votes)