Open modal using jquery?
I’m trying to open the ons-modal in my page using jquery but I really don’t know why I’m getting the following error:
ReferenceError: modal is not defined
This is a working Fiddle with my code: https://jsfiddle.net/u3wy27s7/3/
And when i add ons.bootstrap(); to the top of my code, I get the following error:
TypeError: ons.bootstrap is not a function
Could someone please point me in the right direction?
Thanks in advance.
It is working now. Your modal used var instead of id. You do not need to call bootstrap. Onsen is loaded and working.