Reputation: 6974
I want to get the text between html tags e.g.:
<div id="text">
This is the text I want to put into a variable for later use.
</div>
This is what I want to do with the variable:
var = ????thedivtext????;
$(function(){
$("#text").val(thedivtext);
)}
Thanks...
Upvotes: 0
Views: 1714