You are not logged in.
Pages: 1
How can a precheck if the user has written any content at all before sending the form?
The usual way - if (document.getElementById("myeditor").value) ... - does not work when using xinha together with the textarea "myeditor" (name and id = "myeditor").
So how can i find it this using xinha to give the user an alert and stop submitting the form.
Thanks for any help.
Offline
Thank you,
calling document.myform.onsubmit() did to me. This updates the textarea element without sending the form so i could check the content after that with usual methods.
Offline
Pages: 1