Search code examples
javascriptjqueryjquery-tools

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(){

...?

});

Solution

  • Just call on button click:

    $.mask.close();
    

    JSFiddle