Free JQuery Excel Plugin with working code and demo

JExcel is a lightweight JQuery plugin that enables us to create a Microsoft Excel like environment in our webpage.

Source Code :

<!doctype html>
<html>

  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <title>JQuery Excel</title>
    <link href="https://cdnjs.cloudflare.com/ajax/libs/jexcel/4.6.1/jexcel.css" rel="stylesheet">
  </head>

  <body>
    <div class="container">
      <h1 style="text-align: center;">Free JQuery Excel Plugin</h1>
      <hr>
      <div id="demo"></div>
    </div>

    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jsuites.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jexcel/4.6.1/jexcel.js"></script>

    <script type="text/javascript">
      var data = [
        ['Google', 1998, 807.80],
        ['Apple', 1976, 116.52],
        ['Yahoo', 1994, 38.66]
      ];
      $("#demo").jexcel({
        data:data,
        colWidths: [300,80,100]
      });
    </script>
  </body>

</html>

 

Recommended For You

About the Author: Admin