When you type 3.14 for example, and press enter – validation popup appear. As should be fixed number (by default step=1). But when you type some string, e.g. "hello" and press enter – form submit. Why?
When you type 3.14 for example, and press enter – validation popup appear. As
Share
Try adding
requiredto the field:See: http://jsfiddle.net/keeD2/2/