I’ve got input field and I want to check dot existence for value of price input field. The value will be look like this 12.00. Here is my code
<g:textField class="span3" id="price" name="price" required="" pattern="\d+(\.\d{2})?"/>
I write something like this \d+(\.\d{2})?, but received error. Any suggestions ?
try this