How to add data from input fields to xml using jquery. on click of link "save Data" data from input fields should save to xml file. old data should not delete while saving new data.
xml data should display repeatedly in html like below
<div class="notes">
<div class="dateandtime">Date1</div>
<div class="mynotes">My Note data 1</div>
</div><br/>
<div class="notes">
<div class="dateandtime">Date2</div>
<div class="mynotes">My Note data 2</div>
</div><br/>
<form>
<input type="text" name="Dateandtime"></input>
<input type="textarea" name="mynotes"></input>
<a href="#" id="save">Save Data</a>
</form>
notes.xml :
<notes><date>10/08/2014 10:25pm</date>
<mynotes>text...</mynotes>
</notes>
<notes><date>10/08/2014 10:25pm</date>
<mynotes>text...</mynotes>
</notes>
Please help friends. Thanking You.
No comments:
Post a Comment