Is there a way to validate the contents of the editor using the DOM?
I have an something similar to this:
(Tags removed)
textarea id="notes" name="notes"
AND A BUTTON WITH
onclick="alert('Note length:'+document.getElementById('notes').length+' and note value '+document.getElementById('notes').value+ ' and innerHTML '+document.getElementById('notes').innerHTML)"
Clicking this button returns the following:
Note length:undefined and note value "" and innerHTML ""
From what I can see, the actual contents show up inside an iFrame without any ID I can reference. Any suggestions?? |
|
|