I am trying to add a CSS class of open
a DIV's sibling.
Here's my HTML:
<div id="profile-information">
// Code
</div>
<div class="profile-info">
<div class="profile-content">
// Code
</div>
</div>
So, with the sructure above, i am trying to add CSS class open
to the DIV with class class="profile-content"
via:
var sectionID = "profile-information";
angular.element(document).find('#' + sectionID).next('.profile-info').find('.profile-content').addClass('open');
For some reason the above is not working.