$("#invPreview").on("click", function(){
var year = $("#selectYear").val();
var date = $("#selectMonth").val();
$.post("invoice/invoice-create.load.php", {
year : year,
month : date
},
function(data, status){
$("#content1").html(data);
});
});
$("#invPreview").on("click", function(){
var year = $("#selectYear").val();
var date = $("#selectMonth").val();
$.post("invoice/invoice-create.load.php", {
year : year,
month : date
},
function(data, status){
$("#content1").html(data);
KTMenu.createInstances(); //added line
});
});