I'm using the mmenu jquery plugin for my website. Now I have noticed that the searchfield in the newest version can be configured as a search form.
1.How do I realize that?
My normal search form looks like that:
<form action="search.html" method="post">
<input type="text" name="item" id="searchform" placeholder="Search" />
<button type="submit" name="submit" id="searchbutton">Search</button>
<input type="hidden" name="do" value="search" />
<input type="hidden" name="searchin" value="all" />
<input type="hidden" name="send" value="1" />
</form>
I've tried this one but it does not work:
$("#menu").mmenu({
navbars: { content: [ "prev", "searchfield", "close" ] },
searchfield: {
search: false,
form: {
action: "search.html",
method: "post" },
input: {
type: "text",
name: "item",
id: "searchform" },
input: {
type: "hidden",
name: "do",
value: "search" },
input: {
type: "hidden",
name: "searchin",
value: "all" },
input: {
type: "hidden",
name: "send",
value: "1" }
}
});
2.Is it possible to move the search field down to the end of the menu?
Thanks!