我想获取 html 标签之间的文本,例如:
<div id="text">
This is the text I want to put into a variable for later use.
</div>
这就是我想要对变量执行的操作:
var = ????thedivtext????;
$(function(){
$("#text").val(thedivtext);
)}
谢谢...
我想获取 html 标签之间的文本,例如:
<div id="text">
This is the text I want to put into a variable for later use.
</div>
这就是我想要对变量执行的操作:
var = ????thedivtext????;
$(function(){
$("#text").val(thedivtext);
)}
谢谢...