{"action":"created","issue":{"url":"https://api.github.com/repos/BeSite/jQuery.mmenu/issues/426","labels_url":"https://api.github.com/repos/BeSite/jQuery.mmenu/issues/426/labels{/name}","comments_url":"https://api.github.com/repos/BeSite/jQuery.mmenu/issues/426/comments","events_url":"https://api.github.com/repos/BeSite/jQuery.mmenu/issues/426/events","html_url":"https://github.com/BeSite/jQuery.mmenu/issues/426","id":106662186,"number":426,"title":"Prepending offcanvas menu to a different element than body","user":{"login":"tobyh77","id":7295869,"avatar_url":"https://avatars.githubusercontent.com/u/7295869?v=3","gravatar_id":"","url":"https://api.github.com/users/tobyh77","html_url":"https://github.com/tobyh77","followers_url":"https://api.github.com/users/tobyh77/followers","following_url":"https://api.github.com/users/tobyh77/following{/other_user}","gists_url":"https://api.github.com/users/tobyh77/gists{/gist_id}","starred_url":"https://api.github.com/users/tobyh77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tobyh77/subscriptions","organizations_url":"https://api.github.com/users/tobyh77/orgs","repos_url":"https://api.github.com/users/tobyh77/repos","events_url":"https://api.github.com/users/tobyh77/events{/privacy}","received_events_url":"https://api.github.com/users/tobyh77/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-15T22:37:32Z","updated_at":"2015-09-17T19:42:35Z","closed_at":null,"body":"Hi, I am using this menu on a site that uses .NET Webforms.  One of the menu panels has a search bar in it, but the search won't work because mmenu attaches to the body and I need it to attach inside the form.  I unfortunately don't have an example to show, but hopefully this is clear enough one won't be needed.  The HTML is set up similar to this:\r\n```\r\n<html>\r\n  <body>\r\n    <form id=\"aspnetForm\" class=\"\" action=\"/\" method=\"post\">\r\n    </form>\r\n  </body>\r\n</html>\r\n```\r\n\r\nI was hoping the config options you had in the documentation would solve this issue, but it doesn't seem to, so I may be misunderstanding what the use of those configs are for (or just setting it up wrong).  But I tried this:\r\n```\r\n    $(\"#search-nav-copy\").mmenu({\r\n        offCanvas: {\r\n            menuWrapperSelector: \"#aspnetForm\",\r\n            pageNodetype: \"form\",\r\n            pageSelector: \"body > form\",\r\n        }\r\n    });\r\n```\r\nThe menu still attaches inside the body when I need it inside that form.  Is there any way to achieve this?  Thanks for the help and for the plugin!"},"comment":{"url":"https://api.github.com/repos/BeSite/jQuery.mmenu/issues/comments/141204675","html_url":"https://github.com/BeSite/jQuery.mmenu/issues/426#issuecomment-141204675","issue_url":"https://api.github.com/repos/BeSite/jQuery.mmenu/issues/426","id":141204675,"user":{"login":"FrDH","id":1387163,"avatar_url":"https://avatars.githubusercontent.com/u/1387163?v=3","gravatar_id":"","url":"https://api.github.com/users/FrDH","html_url":"https://github.com/FrDH","followers_url":"https://api.github.com/users/FrDH/followers","following_url":"https://api.github.com/users/FrDH/following{/other_user}","gists_url":"https://api.github.com/users/FrDH/gists{/gist_id}","starred_url":"https://api.github.com/users/FrDH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FrDH/subscriptions","organizations_url":"https://api.github.com/users/FrDH/orgs","repos_url":"https://api.github.com/users/FrDH/repos","events_url":"https://api.github.com/users/FrDH/events{/privacy}","received_events_url":"https://api.github.com/users/FrDH/received_events","type":"User","site_admin":false},"created_at":"2015-09-17T19:42:35Z","updated_at":"2015-09-17T19:42:35Z","body":"The div `.mm-page` is created when the config option `offCanvas.pageSelector` targets more than one node.\r\nThe div `#mm-blocker` is prepended to the config option `offCanvas.menuWrapperSelector`.\r\n\r\nI'm not sure what you're trying to accomplish, but have you considered not using the default offCanvas behavior?\r\nhttp://mmenu.frebsite.nl/on-and-off-canvas.html"}}