I'm using the replace, but when I pass the number 1 or 12 to it the error. For example:
$(this).data('qtde').replace(/\./g, "")
Passing the value 1,223,44 works, when step 1 gives the following error:
Uncaught TypeError: $ (...). HTMLTableRowElement. (Elaborate.js? V = 08022018: 792) at Function.each (jquery-3.2.1.js: 362) at jQuery.fn.init.each (jquery-3.2.1.js: 157) at HTMLInputElement.gravar (Elaborate.js? V = 08022018: 782) at HTMLInputElement.dispatch (jquery-3.2.1.js: 5206) at HTMLInputElement.elemData.handle (jquery-3.2.1.js: 5014)