Answers for "dont close modal on submit javascript"

9

javascript modal close

$('#closemodal').click(function() {
    $('#modalwindow').modal('hide');
});
Posted by: Guest on March-08-2020
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 "dont close modal on submit javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language