I am trying this
$(document).ready(function() {
$("button").click(function() {
$.get('m.csv', function(result) {
$("div").html(result);
});
});
});
When the button is clicked it replaces the text on web page with the text in a csv file. It works fine for files stored on my local machine however when I replace the m.csv with a csv file stored on web server (for example, http://www.abc.com/a.csv) it doesn't work. How can I fix this?