title: document.getElementsByClassName('active'); to hide and show a div is not working. suggest an alternative
body: <pre><code>$('#cprofile').click(function(){
      if(!$(this).parent().hasClass('active')) {
          var active_element = document.getElementsByClassName('active');
          $(active_element).removeClass('active');
          $(this).parent().addClass('active');
      }
      $('.client_container').hide();
      $('#cprofile_container').show();
  });
  </code></pre>
  
  <p><code>document.getElementsByClassName('active');</code> does not work in internet explorer.
  plz suggest other alternative. </p>