troubleshooting Question

how do you open a div based on url parameter

Avatar of smfmetro10
smfmetro10Flag for United States of America asked on
JavaScript
5 Comments1 Solution613 ViewsLast Modified:
Hi

I have some div's that need to be open and closed based on a url parameter.

Is that possible.

Here is my code so far:

<script type="text/javascript">
jQuery(document).ready(function() {
  jQuery(".menu_Specialties").show();
  //toggle the componenet with class msg_body
  jQuery(".heading1").click(function()
  {
    jQuery(this).next(".menu_Specialties").slideToggle(500);
  });
});
</script>
Is there a way to take :  jQuery(".menu_Specialties").show(); and wrap it in a conditional statement?

Thanks!
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 5 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros