Basically I have a form that uses a d_r_o_p down menu for categorization. When the issue being tracked doesn't match any of the categorizations, the user selects OTHER from the d_r_o_p-down, which then sets the display of the hidden WYSIWIG editor to BLOCK instead of NONE using AJAX, allowing the user to write a detailed description of the problem.
It works well enough, but users can technically submit the form without entering any text into the editor.
I have a simple javascript that validates the fields to ensure they've been filled out properly, but can't figure out a way to ensure that when OTHER is selected, something has actually been written in the editor. The contents of the actual textarea remain empty while it looks like the text that the user enters goes into an iframe and then down several levels. I'm sure I can dig down into the iFrame using the DOM but it's not a very elegant solution.
|
|
|