How to write onclick event in submit button ....written in volt
Here you go :)
{{ submit_button('Send', "onClick": "return confirm('Are you sure?')") }}
You can view other Tag helper functions and how to add options here: https://docs.phalcon.io/uk/latest/api/Phalcon_Tag.html
https://docs.phalcon.io/uk/latest/api/Phalcon_Tag.html