Tuesday, December 17, 2013

Java Script : Mandatory mark for fields

function mandatory(control)
{
 if(cordys.getTextContent(control.getLabel()).indexOf('*')<0)
     control.setLabel(cordys.getTextContent(control.getLabel())+" <font color='RED'>*</font>");
}

No comments:

Post a Comment