Bootstrap dropdown issue -


getting bug using dropdown, if call console using $('.profile-dropdown').dropdown('toggle'); pop script fails

<ul class="profile-dropdown dropdown-menu" aria-labelledby="dlabel">   <li>profile page</li>   <li>settings</li>   <li>logout</li> </ul>  ....  <img src="{{ request.user.profile.first.profile_icon }}" class="profile-icon img-responsive img-circle img-thumbnail"> 

jquery

$('.profile-icon').click(function(event) {     event.preventdefault();      $('.profile-dropdown').dropdown('toggle');     console.log('a'); }); 

but logs a console.


Comments