SORU
9 Mart 2009, PAZARTESİ


Nasıl bir WordPress kullanmak bir öğe için bir DOM öğesi dönüştürebilirsiniz?

Belge ile bir öğe yaratıyorum.() createElement. Şimdi nasıl tek bir WordPress kullanmak bir nesne alır bir işleve geçebilir miyim?

$("#id")

Öğe sayfa henüz işlenmiş değil, olamaz.

CEVAP
9 Mart 2009, PAZARTESİ


var elm = document.createElement("div");
var jelm = $(elm);//convert to jQuery Element
var htmlElm = jelm[0];//convert to HTML Element

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

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • Keith Anthe

    Keith Anthe

    26 NİSAN 2011
  • SomeOne Pro

    SomeOne Pro

    25 EKİM 2013
  • TheOtherMau5

    TheOtherMau5

    6 Mart 2012