- How to activate a TextBox if I select an other option in drop down box?
- How do you add an input box in select?
How to activate a TextBox if I select an other option in drop down box?
When an item (option) is selected in DropDownList (HTML SELECT), the EnableDisableTextBox JavaScript function is executed. Inside this function, based on whether the Other option (item) is selected, the TextBox will be enabled else disabled. The HTML Markup consists of a DropDownList (HTML SELECT) and a TextBox.
How do you add an input box in select?
For adding an option from the input text in a select tag, use the “add()” method with “Option” Constructor. The add() method is used to add the elements to the options of the “HTMLSelectElement” also known as <select> tag. It takes two parameters as arguments.