20110831

来源:互联网 发布:路由限速软件 编辑:程序博客网 时间:2024/04/30 15:43

first problem:

description:

some content have been set into textarea, the textarea's content can be modified;

when submit(in fact,release one weibo message), i want to get the content of the textarea(if it has been modified,get the content after modify);

i use js;

first time: i use 

var tt = document.getElementById("t");alert(tt.firstnode.nodevalue);

but it only show the old content(not contain the modify);


then someone helped me:

use this code:

alert(tt.value);

i got what i want!


to be continue...(today)


原创粉丝点击