Drop Down Menu / Posts /

Form in drop down menu

0
I have place a form in one of the drop down menu items.  Seems to work.  Is this going to work or cause security risk.
Antonio  10 years ago   viewed: 5328    

5 Answers

0
The drop down menu is a plain HTML element. Your form within the menu is just like a form within your page.
Joe   10 years ago
0

Yeah. Embed the form into the menu just like you do it within your web page. There is no difference:)

Alex   9 years ago
0

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?

Riccardo   8 years ago
0

Open the ddmenu.js, search for "keydown", you will be located to this sentence:

!G&&m.license.length==6&&p(f,"keydown",ab);

Just delete above sentence to disable the TAB key functions for the menu.

Milo   8 years ago
0

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.

This can be different from the value, or the same. (That will make more sense after you do some JavaScript coding.)

6. Add as many options as you want.

Create a new option object for each choice you want to have available in the list.


greenbergmethew
  8 years ago

   

Your name*
Password
(Optional. Used to modify this post afterwords)
+ =  

Ask your Own Question

  • 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;

  • When you want to start a new page for your question: