Here is the HTML code:
<p onclick='javascript:func(this);'>Bla bla bla</p>
and here is the script (it is written in the head of the document):
function func(e) {
var t = e.text();
console.log(t);
}
It doesn't work and I don't understand why. The error message is:
"Object # has no method 'text'".