SORU
7 EKİM 2008, Salı


Bir öğe olmadığını kontrol gizlidir

JQuery, bir öğenin görünürlüğünü değiştirmek için olası işlevleri .hide(), .show() .toggle() kullanıyor.

JQuery kullanarak, nasıl eğer bir elemanın görünür veya gizli olup olmadığını test edersin?

CEVAP
7 EKİM 2008, Salı


Soru tek bir öğe anlamına gelir bu yana, bu kodu daha uygun olabilir:

// Checks for display:[none|block], ignores visible:[true|false]
$(element).is(":visible"); 

twernt's suggestion ama tek bir öğeye uygulanan; ve aynı matches the algorithm recommended in the jQuery FAQ

Bunu Paylaş:
  • Google+
  • E-Posta
Etiketler:

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • 3DS Max Tutorials

    3DS Max Tuto

    4 AĞUSTOS 2013
  • itfigueres

    itfigueres

    12 EKİM 2013
  • Malwarebytes

    Malwarebytes

    22 Temmuz 2007