Answers for "close a modal on browser back button"

0

when modal close event

$("yourid").on('hide.bs.modal', function(){
	// do it here
});
Posted by: Guest on January-07-2021
0

slear modal form after close

var ChildComponent = {
  template: '<div>{{value}}</div>',
  data: function () {
    return {
      value: 0
    };
  },
  methods: {
    setValue: function(value) {
        this.value = value;
    }
  }
}

new Vue({
  el: '#app',
  components: {
    'child-component': ChildComponent
  },
  methods: {
    click: function() {
        this.$refs.childComponent.setValue(2.0);
    }
  }
})
Posted by: Guest on April-14-2022

Code answers related to "Javascript"

Browse Popular Code Answers by Language