Iam trying to restrict the number of columns to be loaded on CSV upload my below code uploads displays the CSV data in a div but iam trying to restrict the columns to be loaded on a div say my below example of the csv shows there are 7 columns and i want to show only first 4 columns by skipping the first row that is heading.
My Basic Idea is to import later this data in to sq-lite data base using java script or j query

```
heading 1   heading 2   heading 3   heading 4   heading 5   heading 6   heading 7
column1     column2      column3     column4    column5      column6     column7
column1     column2      column3     column4    column5      column6     column7
column1     column2      column3     column4    column5      column6     column7
column1     column2      column3     column4    column5      column6     column7
column1     column2      column3     column4    column5      column6     column7
column1     column2      column3     column4    column5      column6     column7
column1     column2      column3     column4    column5      column6     column7

```

[Demo JS Fiddle](http://jsfiddle.net/W8fME/2391/)

HTML:

```
<input id = "csv" type = "file" /> 

<div id="result"></div>

```

JS:

```
 $('#csv').change(function(e) {
if ((window.FileReader) && (e.target.files != undefined)) {
  var reader = new FileReader(); 
  reader.onload = function(e) {
    var lineSplit = e.target.result.split("\n").join("dassa");
    var commaSplit = lineSplit[0].split(",");
    var content = "";

      for(var j = 0; i < lineSplit.length; j++) {
    for(var i = 0; i < commaSplit.length; i++) {
      var temp = commaSplit[i];
        alert(commaSplit[i]);
      content = content + " " + temp;
    }
    }
    var fileContent = reader.result;
    $('#result').html(fileContent);
  };

  reader.readAsText(e.target.files.item(0));    
}
 });

```