Jun 15, 2012, 11:49 AM
how to validate the HtmlEditor using java script?
Hi,
I have a requirement
I want to validate HtmlEditor text using java script.
first time i entered the text and saved in DataBase.
After that again I cleared the text , now this time i wrote the below code under update button click event on listener.
Please help me.
Note: Screen shot attached.
I have a requirement
I want to validate HtmlEditor text using java script.
first time i entered the text and saved in DataBase.
After that again I cleared the text , now this time i wrote the below code under update button click event on listener.
if (txtPreRequisites.getValue() == "" || txtPreRequisites.getValue() == " ") {
alert("Course prerequisites required");
}
but its is returning <br/> so alert is not displaying.Please help me.
Note: Screen shot attached.
Last edited by Daniil; Jun 15, 2012 at 11:53 AM.
Reason: Please use [CODE] tags