0

TXT file with strings separated by line breaks to Javascript or jQuery variables.

I have some strings separated by line breaks in a txt file, how can I call each line into js or jQuery variables? So far nothing I've tried is working. I need to use those variables to replace text in an html file.

13th Jul 2017, 3:39 PM
christo alberts
christo alberts - avatar
1 Resposta
0
you need to look for line break as delimiter i.e ascii char(10) or char(13). use split function with this delimiter
13th Jul 2017, 6:58 PM
Gurpreet Singh
Gurpreet Singh - avatar