Question: I do not think this is possible but just want to be sure. I am trying to expand a collapsed div (with jquery) when coming from another page. For example: from the home page a user clicks on view press release and it goes to the page with many press releases already collapsed. I want the correct press released expanded. Is this even possible?

Answer: 
It is definitely possible - assuming you control the target page. In that case, you can add an extra argument to your request link specifying the press release tho expand (for example, mypage.html?press\_release\_id=1234)

And then, in the target page (the one with the press releases), and using `getParameterByName()` from [How can I get query string values in JavaScript?](https://stackoverflow.com/questions/901115/get-query-string-values-in-javascript), you can easily parse this argument and expand the corresponding div:

```
$(document).ready(
   function() {
      var id = getParameterByName("press_release_id");
      $("#" + id).show();
   });

```
1. **Shows the Collapse DIV and won't remove/hide it**

```
 $(document).ready(function() {
   $(window.location.hash).show();
 }); 

```
2. **Shows the Collapse DIV and collapses it after clicking on another collapse button/link within same page**

```
 $(document).ready(function() {
   $(window.location.hash).addClass('collapse in');
 }); 

```