var csvData = 'data:application/csv;charset=utf-8,' + $('#res').append(' ').text() + $('#res1').append(' ').text(); I can not understand how to put a space that would divide the numbers$('#res').append(' ').text() - contains an arbitrary number for example 1000
$('#res1').append(' ').text() - содержит тоже произвольное число например 0001 I write these two numbers to a file (*. txt), at the moment an entry in the file is 10000001. How can I divide these numbers with a space or transfer to another line? I want to achieve this result:
1000 0001
1000
0001
append()is used to add an element to the DOM, and not to add spaces to the text. - teran$('#res').text() + ' ' + $('#res1').text();- user207618