Renjitha22
Renjitha22

Reputation: 213

close the popup box after submitting the form

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

Upvotes: 0

Views: 78

Answers (3)

Beginner
Beginner

Reputation: 4153

try this

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

Upvotes: 0

Menaka Kariyawasam
Menaka Kariyawasam

Reputation: 618

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

Upvotes: 0

Shibon
Shibon

Reputation: 1574

try this code if u r using bootstrap modal popup

$("#balloon").modal('hide');    

Upvotes: 0

Related Questions