Menu icon Foundation
use query to open off canvass

Hello I have off canvas working but want to trigger it using jquery.   I am trying to work query out and finding it hard and I can't find an example by searching the web.  The docs mention $('#element').foundation('toggle', event, trigger); is this relevant? What do I do to make it work? Many thanks. alex

off canvasjquerytoggle

Hello I have off canvas working but want to trigger it using jquery.   I am trying to work query out and finding it hard and I can't find an example by searching the web.  The docs mention $('#element').foundation('toggle', event, trigger); is this relevant? What do I do to make it work? Many thanks. alex