I am new to javascript, I need help with the following. I have a html file with a htmlform on top followed by a table, that i filtered using checkboxes. I am trying to write a function to download the html form and the filtered values of table with header as one csv file or a xml file. Final goal is to have it as xml file, but if i can get a csv file, i can parse it and convert to a xml file. I tried following the discussion at How to create and download an XML file on the fly using javascript? but it was not of much help.
html form looks like this
<html>
<form>
<fieldset>
Item ID:<input type="text" name="name">
<br>
Country:<input type="text" value="US">
<br>
Zip:
<div>
<label for="msg">Message:</label>
<textarea id="msg" name="user_text</textarea>
</div>
</fieldset>
</form>
</html>