How to show error message with jquery tooltip?
Posted
by bala3569
on Stack Overflow
See other posts from Stack Overflow
or by bala3569
Published on 2010-04-20T05:38:23Z
Indexed on
2010/04/20
5:43 UTC
Read the original article
Hit count: 326
I am validating my controls in a form... if a control is empty i would like to show a jquery tooltip with that error msg.. Here is what i am doing...
if (document.getElementById("ctl00_ContentPlaceHolder1_ListDiscipline")
.selectedIndex == -1)
{
document.getElementById("ctl00_ContentPlaceHolder1_ErrorMsg").innerHTML =
"please select your Discipline";
document.getElementById("ctl00_ContentPlaceHolder1_ListDiscipline").focus();
return false;
}
and i would like to do like this,
if (document.getElementById("ctl00_ContentPlaceHolder1_ListDiscipline")
.selectedIndex == -1)
{
// show tooltip besides the control with the error message...
document.getElementById("ctl00_ContentPlaceHolder1_ListDiscipline").focus();
return false;
}
Any suggestion...
© Stack Overflow or respective owner