display amount with currency for jquery

Solutions on MaxInterview for display amount with currency for jquery by the best coders in the world

showing results for - "display amount with currency for jquery"
Ervin
15 Feb 2020
1$(document).ready(function(){
2  $('#test').click(function() {
3    TESTCURRENCY = $('#value').val().toString().match(/(?=[\s\d])(?:\s\.|\d+(?:[.]\d+)*)/gmi);
4    if (TESTCURRENCY.length <= 1) {
5      $('#valueshow').val(
6        parseFloat(TESTCURRENCY.toString().match(/^\d+(?:\.\d{0,2})?/))
7      );
8    } else {
9      $('#valueshow').val('Invalid a value!');
10    }
11  });
12});