Discussion
CVS Caremark
IN
Last activity: 10 Jun 2015 14:46 EDT
Clientside jaascript code to mark an input field with red cross sign and show error message
Hi All,
I want to write a Javascript function to validate for a date type input field.Whenever validation fails, the field on UI should be marked with red cross sign and error message should be displayed very similar to other default client side validation.I dont want to write an edit validate rule.
Requirement: I have a date field on UI.Whenver user changes this date then i need to comapre the same with another date present on pyWorkPage and if changed date is greater then i need to mark this date as invalid and show the error message to the user.