I wanted to generate an excel sheet once a user clicks on a button . Basically i want to do exactly what is dicussed here
how to pass html table values to excel she
You can use this good library: https://github.com/jmaister/excellentexport