Answers for "display amount with currency for jquery"

0

display amount with currency for jquery

$(document).ready(function(){
  $('#test').click(function() {
    TESTCURRENCY = $('#value').val().toString().match(/(?=[\s\d])(?:\s\.|\d+(?:[.]\d+)*)/gmi);
    if (TESTCURRENCY.length <= 1) {
      $('#valueshow').val(
        parseFloat(TESTCURRENCY.toString().match(/^\d+(?:\.\d{0,2})?/))
      );
    } else {
      $('#valueshow').val('Invalid a value!');
    }
  });
});
Posted by: Guest on November-14-2020

Code answers related to "display amount with currency for jquery"

Code answers related to "Javascript"

Browse Popular Code Answers by Language