Jquery style display - How to get the style display attribute “none / block”
You could try:
$j('div.contextualError.ckgcellphone').css('display')
this is the correct answer
$('#theid').css('display') == 'none'
You can also use following line to find if it is display block or none
$('.deal_details').is(':visible')
If you're using jquery 1.6.2 you only need to code
$('#theid').css('display')
for example:
if($('#theid').css('display') == 'none'){
$('#theid').show('slow');
} else {
$('#theid').hide('slow');
}
댓글 없음:
댓글 쓰기