Validate date in dd/mm/yyyy format using JQuery Validate

You don’t need the date validator. It doesn’t support dd/mm/yyyy format, and that’s why you are getting “Please enter a valid date” message for input like 13/01/2014. You already have the dateITA validator, which uses dd/mm/yyyy format as you need. Just like the date validator, your code for dateGreaterThan and dateLessThan calls new Date for … Read more

An invalid form control with name=” is not focusable

This issue occurs on Chrome if a form field fails validation, but due to the respective invalid control not being focusable the browser’s attempt to display the message “Please fill out this field” next to it fails as well. A form control may not be focusable at the time validation is triggered for several reasons. The two … Read more

what is a parse error and how do I fix it

You have some sort of invisible character that the validator is choking on somewhere (ie. it looks and acts like a space, but it isn’t the space). If I view your CSS file directly and copy/paste the contents into the CSS validator’s direct input validation, it validates

How to test valid UUID/GUID?

Currently, UUID’s are as specified in RFC4122. An often neglected edge case is the NIL UUID, noted here. The following regex takes this into account and will return a match for a NIL UUID. See below for a UUID which only accepts non-NIL UUIDs. Both of these solutions are for versions 1 to 5 (see the … Read more

Validating input using java.util.Scanner

Overview of Scanner.hasNextXXX methods java.util.Scanner has many hasNextXXX methods that can be used to validate input. Here’s a brief overview of all of them: hasNext() – does it have any token at all? hasNextLine() – does it have another line of input? For Java primitives hasNextInt() – does it have a token that can be parsed into an int? Also available are hasNextDouble(), hasNextFloat(), hasNextByte(), hasNextShort(), hasNextLong(), and hasNextBoolean() As bonus, there’s … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)