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>
halfer
20.2k20 gold badges111 silver badges208 bronze badges
asked Jan 4, 2017 at 19:53
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

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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.