Submit a form in a modal

I'm using Bonita Community Edition, Version : 7.8.4.
I want to add modal after submitting form. Usually I'm using jQuery but in UI Desinger I cant use jQuery function. ($ in jquery causes an error)
Is there any simple way for adding modal to submit button? (using jQuery or Angular)