JavaScript bootstrap collapse event capture bootstrap collapse event handler,bootstrap collapse event not firing,bootstrap

I am trying to change the icon on collapse and facing an event firing issue

The HTML

    <div id="collapse-menu" class="row">
        <div class=" panel">
            <a target='_blank' href="#collapse-Content" data-toggle="collapse" data-parent="#main-menu">
                <h3>A default header<span class="glyphicon glyphicon-plus pull-right"></span></h3></a>
        </div>
        <div id="collapse-Content" class="collapse">
            Blah Blah! Some Content
        </div>
    </div

JS to handle the events

$('.row').on('shown.bs.collapse', function(){
    $(this).find(".glyphicon-plus").removeClass("glyphicon-plus").addClass("glyphicon-minus");
});
$('.row').on('hidden.bs.collapse', function(){
    $(this).find(".glyphicon-minus").removeClass("glyphicon-minus").addClass("glyphicon-plus");
});

This event is not captured when the collapse is done. I am guessing its fired because the .collapse is removed and the class changed to .in (the default expected behavior).

is this the right event to capture? is the event not triggered on .row?

Answer:1

I want to get all selected values of bootstrap-multiselect on button click. My JSP page code is given below <script type="text/javascript"> $(document).ready(function() { $('#...

I want to get all selected values of bootstrap-multiselect on button click. My JSP page code is given below <script type="text/javascript"> $(document).ready(function() { $('#...

  1. javascript bootstrap multiselect
  2. javascript multiselect bootstrap
  3. js bootstrap multiselect
  4. vue js bootstrap multiselect
  5. js/bootstrap-multiselect.js download
  6. js/bootstrap-multiselect.js cdn
  7. angularjs bootstrap multiselect
  8. angularjs bootstrap multiselect dropdown

I have an attribute that is of string data type.I am using the algoliasearchHelper object to search through my Algolia database. What I want to do is create a facet filter that takes a specified ...

I have an attribute that is of string data type.I am using the algoliasearchHelper object to search through my Algolia database. What I want to do is create a facet filter that takes a specified ...

Sample: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Dynamic Link</title> </head> <body> <input type="text" value="http:...

Sample: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Dynamic Link</title> </head> <body> <input type="text" value="http:...

Hello I have a simple javascript function that chooses a random list item in an unordered list with the press of a button. It works fine, the console spits out a random list item when the button is ...

Hello I have a simple javascript function that chooses a random list item in an unordered list with the press of a button. It works fine, the console spits out a random list item when the button is ...