$("#jqxExpander").jqxExpander({ width: 200, height: 100, theme: 'energyblue' }); $("#jqxButton").jqxButton({ height: '30px', width: '160px', theme: 'energyblue', }); $('#jqxButton').on('click', function () { var content = $('#jqxExpander').jqxExpander('getHeaderContent'); alert(content); });