New answers tagged

0

In case you have something else triggered by the click that opens the collapse, this will work as well: $('a[href="' + window.location.hash + '"]').click(); The thing you need to watch for in doing either of these approaches is javascript load order. It's always possible jQuery may not have loaded by this time (in which case you'll get an error about '$') ...


Top 50 recent answers are included