I have a modal which contain table and have a save setup button and load setup button, When I click on save button the table content should be saved in a file in any folder in any format and by clicking on load button it should able to load that file in the HTML format.
So how can I do this?
below is the code for Modal
<div class="modal fade" id="envVarModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel" style="text-align:center">Environment Variable Settings</h4>
</div>
<div class="modal-body" id="envVarModalBodyID">
<label>Env Variable:</label>
<select id="envVarID" name="Select2" onchange="addEnvVar()">
<option value="nothingSelected">Select Env Variable</option>
<option value="Count">Count</option>
<option value="Schedule">Schedule</option>
</select>
<table><tr><td>A</td><td>B</td></tr><tr><td>One</td><td>Two</td></tr><tr><td>Three</td><td>Four</td></tr></table>"
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Save Setup</button>
<button type="button" class="btn btn-primary">Load Setup</button>
</div>
</div>
</div>
</div>