Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <input id="curency" regex="^[0-9]+([.]|[,])?[0-9]*([0-9]+)?$" type="text" class="form-control" placeholder="">
- function validCurencyForNumber(){
- var curencyVal = $('#curency').val();
- curencyVal = parseFloat(curencyVal).toFixed(2);
- if(curencyVal){
- showError('Введите верное значение');
- return false;
- }
- }
Add Comment
Please, Sign In to add comment