// Container for link where users will click to open the second div <div class="topbar-block topbar-profile-options"> <a class="open-popup-on-click" data-popup-id="topbar-user-actions"></a> </div> // Container-popup <div id="topbar-user-actions" class="hidden popup"></div>
open-popup-on-click
$('.open-popup-on-click').unbind('click').click(function() { $('#' + $(this).data('popup-id')).toggleClass('hidden'); return false; });
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)