javascript - TWBS Ratchet - How to close modal maually? -
i'm building mobile web app ratchet.
have opening modal, fill form, press button save , close modal.
now, i'm able close modal it's documentated button, , i'm able save form field...but how things together?
in rachet's documentation it's not explained how close modal manually via js.
i'm using ratchet angularjs, button calls agular function, in should close modal.
thanks
ok, solved way.
in modal i've added button
<button class="btn" ng-click="add();" href="#mymodal">save</button>
by pressing button wanted close modal after logic. so, logic:
$scope.add = function() { // logic here jquery('#mymodal').removeclass('active'); };
i hope can else...
Comments
Post a Comment