Products

Back to Examples

Jquery

Creating a jspreadsheet javascript instance using jQuery

Source code

<html>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>

<script src="https://bossanova.uk/jspreadsheet/v3/jexcel.js"></script>
<link rel="stylesheet" href="https://bossanova.uk/jspreadsheet/v3/jexcel.css" type="text/css" />
<script src="https://jsuites.net/v3/jsuites.js"></script>
<link rel="stylesheet" href="https://jsuites.net/v3/jsuites.css" type="text/css" />

<div id="spreadsheet"></div>

<input type="button" value="Add new row" onclick="$('#spreadsheet').jexcel('insertRow')" />

<script>
let options = {
    minDimensions:[10,10],
    tableOverflow:true,
}

$('#spreadsheet').jexcel(options); 
</script>
</html>