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
Mahather Mohamed
351 silver badge6 bronze badges
-
See Php and javascript code to modify a csv file entries. Research will turn up more information.traktor– traktor2017年01月04日 20:39:21 +00:00Commented 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 ..@Traktor53Mahather Mohamed– Mahather Mohamed2017年01月04日 20:48:56 +00:00Commented Jan 4, 2017 at 20:48
-
Maybe this can get you started: stackoverflow.com/questions/22031719/…Asons– Asons2017年01月04日 21:19:19 +00:00Commented 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>Mahather Mohamed– Mahather Mohamed2017年01月04日 22:03:15 +00:00Commented 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 ..Mahather Mohamed– Mahather Mohamed2017年01月04日 22:06:44 +00:00Commented Jan 4, 2017 at 22:06
default