SORU
2 HAZİRAN 2009, Salı


jQuery div etiketinin içine resim eklemek

Dıv etiketi var

<div id="theDiv">Where is the image?</div>

Div içine bir resim etiketi eklemek istiyorum

Sonuç:

<div id="theDiv"><img id="theImg"  src="theImg.png" />Where is the image?</div>

CEVAP
2 HAZİRAN 2009, Salı


Aşağıdaki denedi:

$('#theDiv').prepend('<img id="theImg" src="theImg.png" />')

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

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • Influencer Plus

    Influencer P

    2 Ocak 2013
  • International Secret Agents Concerts

    Internationa

    2 Aralık 2008
  • Jonathan Morrison

    Jonathan Mor

    24 Mart 2010