JavaScript HTML Input Examples
Examples of using JavaScript to access and manipulate HTML input objects.
Button Object
Disable a buttonFind the name of a buttonFind the type of a buttonFind the value of a buttonFind the text displayed on a buttonFind the id of the form a button belongs to
Form Object
Submit a formReset a formFind the value of each element in a formFind the accepted character set of a formFind the action attribute of a formFind the value of the enctype attribute in a formFind the number of elements in a formFind the method for sending form dataFind the name of a formFind the target of a form
Option and Select Objects
Disable and enable a dropdown listGet the id of the form that contains the dropdown listGet the number of options in the dropdown listTurn the dropdown list into a multiline listSelect multiple options in a dropdown listDisplay the selected option in a dropdown listDisplay all options from a dropdown listDisplay the index of the selected option in a dropdown listChange the text of the selected optionRemove options from a dropdown list

