I'm using tinymce in my app with jquery. I am also using the jquery add in for tinymce to load it all locally.
I am pretty noob with jquery but I think I should be able to get it like this.
<h1 class="class">John</h1>
<form>
<textarea id="id">
<p>Hello <span class="class">John</span>,</p>
</textarea>
</form>
<script>
// Doesn't work for either
$('form#id.class').text('Mark');
// Doesn't Work Either for the textarea but does the h1
$('.class').text('Mark');
</script>
But of course it's not working or why would I be posting this. What am I doing wrong?
I am importing jquery and can grab other things just like that and it works.