i tried this but did not got the output
function downloadInnerHtml(filename, elId) {
var elHtml = $(elId).pdf();
var link = document.createElement('a');
var mimeType = mimeType/'pdf';
link.setAttribute('download', filename);
link.setAttribute('href','data:' + mimeType + ';charset=utf-8,' + encodeURIComponent(elHtml));
link.click();
}
$(document).ready(function () {
$('#download').click(function () {
downloadInnerHtml(fileName, 'table4');
});
});