Jump to content
  • 0

Изменение свойства textarea


DoctorGester
 Share

Question

Итак, мне нужно изменить некое свойство textarea с помощью javascript. А именно добавить ей значение onkeyup. Пробовал

document.getElementById("message").onkeyup("OnUp();")

и

document.getElementById("message").onkeyup = "OnUp();"

Вот сама функция OnUp

function OnUp(){
alert("1");
};

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy