0

I have csv file with contents below

heading1,heading2,

Name1,Name2,

If I select name in heading1, that value should be updated in CSV file.

   <select id="heading1" >  
         <option value="">Select</option>
         <option value="Nmae1">Nmae1</option>
         <option value="Nmae2">Nmae2</option>
    </select>
<select id="heading1" >  
     <option value="">Select</option>
     <option value="Nmae1">Nmae1</option>
     <option value="Nmae2">Nmae2</option>
</select>
5
  • See Php and javascript code to modify a csv file entries. Research will turn up more information. Commented Jan 4, 2017 at 20:39
  • I tried all the possibility's tried to search it in google and stackoverflow but no luck..that why I created new question ..@Traktor53 Commented Jan 4, 2017 at 20:48
  • Maybe this can get you started: stackoverflow.com/questions/22031719/… Commented Jan 4, 2017 at 21:19
  • I can read text from file and I don't know how to update file using javascript Below code can be used to read and display content. I want to update as well . <script> jQuery .ajax({ url: './files/canmsg.txt', dataType: 'text' }) .error(function(){ console.warn('An error occurred whilst loading the file', arguments); }) .done(function(res){ jQuery.each(res.split(/\r?\n/g), function(i, v){ jQuery('#canmess1').append('<p>' + v + '</p>'); }); }) ; </script> Commented Jan 4, 2017 at 22:03
  • My question is simple I have a CSV file .. How to update particular values in CSC file using Javascript or ajax or with anyone .. Commented Jan 4, 2017 at 22:06

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.