$( "#accordion" ).accordion({ active: false, collapsible: true, autoHeight: false, icons: false, navigation: true, header: '.sl' }); $(".sl").click(function(event){ window.location.hash=this.hash; });