Yeah. Embed the form into the menu just like you do it within your web page. There is no difference:)
I have placed a form in one of the drop down menu items and it works perfectly, but when I use the TAB key to switch input form, the menu closes due to accessibility. How to solve it?
Open the ddmenu.js, search for "keydown", you will be located to this sentence:
Just delete above sentence to disable the TAB key functions for the menu.
1. Create the <select> element first.
The container for the list is a <select> element. The entire list is encased in the <select></select> pair.
2. Give the select element an ID.
You'll use this ID to refer to the element in code.
3. Add an option element to the select element.
It helps to indent the options to remind yourself that they're part of theselect object.
4. Give each option a value.
The value is the response sent to a program when the user chooses an option. The user will not necessarily see the value.
5. Indicate the text the user will see between the <option> and</option> tags.
6. Add as many options as you want.
Create a new option object for each choice you want to have available in the list.
If your question is related to the topic of this post, you can post your question to this page by clicking the "Post a reply" button at left;