नहीं है, तो मैं एक कथन बनाने की कोशिश कर रहा हूं जो कोड चलाता है यदि क्लिक किए गए ली तत्व में फ़ोटो की कक्षा नहीं है।जांचें कि क्लिक किए गए तत्व में कोई विशिष्ट वर्ग
$('div.menu li').click(function(){
var content = $(this).attr('class');
if (/* I can't figure out the correct syntax that goes here? */){
$("div.content_wrapper, div.content").hide();
$('div.content_wrapper').animate({width: 'toggle'});
$('div.content_wrapper, div.' + content).show();
$('div.menu li').removeClass('menuactive');
$(this).addClass('menuactive');
}
});
+1 स्मार्ट उत्तर। – undefined
दिलचस्प, धन्यवाद! – farrkling