JQuery Wrap()

26 12 2011

Eğer herhangi bir elementi başka bir elementin arasına almak istiyorsak wrap() metodunu kullanabiliriz.

$("a").wrap(document.createElement("b"));

şeklinde bir kullanım döküman üzerindeki tüm a elementlerini
<b></b>
tag i arasına alacaktır.


İşlemler

Bilgi

Yorum yapın

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Değiştir )

Twitter picture

You are commenting using your Twitter account. Log Out / Değiştir )

Facebook photo

You are commenting using your Facebook account. Log Out / Değiştir )

Connecting to %s




Follow

Get every new post delivered to your Inbox.