<div> <div> <div> RTE field (changes from p tag to h1/h2 depending on style) </div> </div> </div>
I've tried numerous different (and sometimes rigged) ways of doing this:
$('myRTEID').html(); $('myRTEID *').html(); $('myRTEID').last().val(); var myHtml = document.getElementByID('myRTEID').firstChild.innerHTML;
Many more than the above attempts did not work either. The issue I'm running into, and partially the reason is due to nested tags, is that I can get the proper value, markup and all, but only if it is the default style. On top of this, even if it is set to the default style, bold and italic (strong and em) tags are picked up, but anything more than this will cause the exact same method of retrieving the DOM element to return undefined. Any insight into this would be greatly appreciated, as I have officially exhausted my attempts.