JQuery .append()

18 12 2011

Jquery append metodu, üzerinde işlem yaptığımız elementin en sonuna ekleme yapmamızı sağlar. ek yaptığımız bölüm element veya string olabilir. ör :

$('#pnlGeneral').append('<asp:TextBox runat="server" ID="txtName" Text="sadullah textbox"/>');

şeklindeki bir kod ile pnlGeneral isminde, ClientIDMode u static olarak set edilmiş bir panel üzerine txtName isminde, içeriği “sadullah textbox” olan bir textbox ekliyoruz. işe yarayabilir ;)


İş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.