jQuery - How to get the data from txt file -
if have following data in text.txt file, how these data , split array
txt
arr[0] =>there arr[1] =>is arr[2] =>no arr[3] =>jquery arr[4] =>specific arr[5] =>explode arr[6] =>method, arr[7] =>use arr[8] =>instead arr[9] =>javascript arr[10] =>native
you have use eval(). in order split file have change it's content little bit.
txt file should (see quotes , kind of delimeter - comma in case):
arr[0] => "there", arr[1] => "is", arr[2] => "no", arr[3] => "jquery", arr[4] => "specific", arr[5] => "explode", arr[6] => "method", arr[7] => "use", arr[8] => "instead", arr[9] => "javascript", arr[10] => "native", see working example (check browser's console output).
Comments
Post a Comment