


Xiaoqiang's HTML5 mobile development road (31) - JavaScript review 6
HTML DOM model: Before the w3c dom model (specification) appeared, each browser supported some DOM operations
Select object
Attributes: selectedIndex: indicates the subscript of the option currently selected by the user (from 0 Start) length: Get or set the length of the option options: The value is an array, each array element is an option object, representing all the options of the drop-down list Option object
Attributes: text: Description of the option value: The value of the option selected: When the value is true, it means that this option is selected by the user and the Option object can be created as follows
var obj = new Option(text, value);
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
|
Cascading drop-down list
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
|
Table object is equivalent to
Attributes: tHead: Returns tHead object tFoot: Returns tFoot object tBody: Returns tBody object array rows: Returns all rows of the table, TableRow array method: var obj = insertRow(index): Insert a row at index, and the returned obj is a TableRow object (the subscript starts from 0) deleteRow(index): Delete a row of TableRow objects at index. Equivalent to
Attributes: cells: Represents an array of all cells (TableCell object) method: var obj = insertCell(index); Insert a cell at index, and return obj is TableCelldelecteCell(index): Delete a cell TableCell object equivalent to
Copy after login The above is the content of Xiaoqiang’s HTML5 mobile development road (31) - JavaScript review 6. For more related content, please pay attention to the PHP Chinese website (www.php.cn)! Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
![]() Hot AI Tools![]() Undresser.AI UndressAI-powered app for creating realistic nude photos ![]() AI Clothes RemoverOnline AI tool for removing clothes from photos. ![]() Undress AI ToolUndress images for free ![]() Clothoff.ioAI clothes remover ![]() Video Face SwapSwap faces in any video effortlessly with our completely free AI face swap tool! ![]() Hot Article
Assassin's Creed Shadows: Seashell Riddle Solution
4 weeks ago
By DDD
What's New in Windows 11 KB5054979 & How to Fix Update Issues
3 weeks ago
By DDD
Where to find the Crane Control Keycard in Atomfall
4 weeks ago
By DDD
Roblox: Dead Rails - How To Complete Every Challenge
1 months ago
By DDD
Atomfall guide: item locations, quest guides, and tips
1 months ago
By DDD
![]() Hot Tools![]() Notepad++7.3.1Easy-to-use and free code editor ![]() SublimeText3 Chinese versionChinese version, very easy to use ![]() Zend Studio 13.0.1Powerful PHP integrated development environment ![]() Dreamweaver CS6Visual web development tools ![]() SublimeText3 Mac versionGod-level code editing software (SublimeText3) ![]() Hot Topics![]() Guide to Table Border in HTML. Here we discuss multiple ways for defining table-border with examples of the Table Border in HTML. ![]() This is a guide to Nested Table in HTML. Here we discuss how to create a table within the table along with the respective examples. ![]() Guide to HTML margin-left. Here we discuss a brief overview on HTML margin-left and its Examples along with its Code Implementation. ![]() Guide to HTML Table Layout. Here we discuss the Values of HTML Table Layout along with the examples and outputs n detail. ![]() Guide to HTML Input Placeholder. Here we discuss the Examples of HTML Input Placeholder along with the codes and outputs. ![]() Guide to the HTML Ordered List. Here we also discuss introduction of HTML Ordered list and types along with their example respectively ![]() Guide to Moving Text in HTML. Here we discuss an introduction, how marquee tag work with syntax and examples to implement. ![]() Guide to HTML onclick Button. Here we discuss their introduction, working, examples and onclick Event in various events respectively. ![]() |