$('#button-main').click(function(){
$('#button-1').trigger("click");
$('#button-2').trigger("click");
$('#button-3').trigger("click");
});
var event = document.createEvent("MouseEvents");
event.initEvent("click", true, true);
event.synthetic = true;
document.getElementById('button-1').dispatchEvent(event, true);