SORU
6 Ocak 2009, Salı


Button Set değeri jQuery

Çok satırlı metin alanı aşağıdaki kod ile jquery kullanarak: değeri ayarlamak için çalışıyorum

$("textarea#ExampleMessage").attr("value", result.exampleMessage);

Sorun, bu kodu yürütür sonra, button metin değiştirme değil mi?

alert($("textarea#ExampleMessage").attr("value")) bir sahne ancak yeni set değeri verilir?

CEVAP
6 Ocak 2009, Salı


Val denediniz mi?

$("textarea#ExampleMessage").val(result.exampleMessage);

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

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • Dogbert files

    Dogbert file

    12 Ocak 2012
  • eHow

    eHow

    27 NİSAN 2006
  • ThePointblank

    ThePointblan

    18 Aralık 2006