20110831

 

first problem:

<span style="font-family: Arial, Verdana, sans-serif; white-space: normal; background-color: rgb(255, 255, 255);" mce_style="font-family: Arial, Verdana, sans-serif; white-space: normal; background-color: #ffffff;">description:</span>
 

 

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:

 


i got what i want!

 

 

to be continue...(today)

 

你可能感兴趣的:(JavaScript,html)