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.
1 Respuesta
0
you need to look for line break as delimiter i.e ascii char(10) or char(13). use split function with this delimiter