I have a page containing the following div element:
Some Value
How woul
$('#myDiv').text()
Although you'd be better off doing something like:
var txt = $('#myDiv p').text(); alert(txt);
Some Text
Make sure you're linking to your jQuery file too :)