Forum Discussion
_anomDiebolt_
7 years agoQrew Elite
When you enter text into a Rich Text Field with fid=6 you are not directly entering text into the <textarea id=_fid_6 name=_fid_6></textarea>. Rather you are entering text into the <div> following the <textarea>. This <div> is content editable and the text you enter is only associated to the <textarea> form element when the form is submitted. So to detect when the <div> is blurred you have to use code similar to this:
$("#_fid_6 + div").on("blur", function() {Notes:
console.log(this.innerHTML)
});
(1) It may seem unusual but it is common for Rich Text Editors (QuickBase uses ACE) to have text entered into an element different from the form element that will get submitted with the form submits.
(2) The selector "#_fid_6 + div" uses the "+" sign as the adjacent sibling selector.
RyanPflederer2
7 years agoQrew Trainee
Thanks Dan!