Say I have a CSV line:
red,yellow,green,blue
How would I programmatically select blue from a string using jQuery?
Data is returned using an AJAX request from a PHP script that displays a CSV file.
var csv_Data; $.ajax({ type: 'GET', url: 'server.php', async: false, data: null, success: function(text) { csv_Data = text; } }); console.log(csv_Data);
source share