close the popup box after submitting the form

77 views Asked by At

I'm using jquery.mb.balloon.js, jQuery plugin to add balloon tips in my webpage. I need to close the popup box, after submitting the form.I try hideDuration: 80 method but its not working...

$.ajax({
type: 'GET',
data: dataString,
url: baseUrl + "send/",
contentType: "application/json; charset=utf-8",
success: function (result) {

$('#balloon').balloon({hideDuration: 80}); // hide my popup box

},
error: function (result) {
alert(result);
}

Thanks in advance

3

There are 3 answers

0
Shibon On

try this code if u r using bootstrap modal popup

$("#balloon").modal('hide');    
0
Menaka Kariyawasam On

You can use addclass function to add hidden class to modal div

0
Beginner On

try this

$("#baloon").hideBalloon({hideDuration:80});