0

I have the following jquery code

$("#importenew").val(dataTable.row(this).data()[23]);

and it shows me the following: 1700,5

It is possible to make a division and show:
1700
5

aynber
  • 20,647
  • 8
  • 49
  • 57
  • See [`replace`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace) method or [`split`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/split) method. – trincot Jun 01 '22 at 15:11
  • I have tried this: $("#liquidaredit").val(dataTable.row(this).data()[20]); var str1 = $("#liquidaredit").val(dataTable.row(this).data()[20]); var chunks = str1.split(","); alert(chunks[0]); alert(chunks[1]); It tells me that split is not a function. – Francisco José Gimeno Esteban Jun 01 '22 at 15:18

0 Answers0