chnsslf 发表于 2013-2-7 17:36:02

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:
 
alert(tt.value);
i got what i want!
 
 
to be continue...(today)
 
页: [1]
查看完整版本: 20110831