Biker John
Biker John

Reputation: 2711

JqueryTools expose close on button click

I disabled the default .expose() closeonclick function because i want to close it with button. The problem is i cant find the code how to properly close it.

$('#button').on('click',function(){

...?

});

Upvotes: 2

Views: 206

Answers (1)

Inferpse
Inferpse

Reputation: 4145

Just call on button click:

$.mask.close();

JSFiddle

Upvotes: 1

Related Questions