Jump to content

Jquery Export to Excel


FooKelvin

Recommended Posts

Quick glance at the doc link you provided, I would say you just need to set the name config property to document.title

 

Example using step #3 in doc:

 

$("button").click(function(){
  $("#table2excel").table2excel({
    // exclude CSS class
    exclude: ".noExl",
    name: document.title
  });
});

Hi Josh,

 

The name: is for excel sheet name. I would like to change the file name, for example myname.xls

 

Thank You

Link to comment
Share on other sites

Hi Josh,

 

The name: is for excel sheet name. I would like to change the file name, for example myname.xls

 

Thank You

 

interesting, since the example on the page you linked seems to highly infer that the 'name' is the document name

 

$("button").click(function(){
  $("#table2excel").table2excel({
    // exclude CSS class
    exclude: ".noExl",
    name: "Excel Document Name"
  });
});
 
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.