How to write a script for "Select" lists using JavaScript?
Submitted by: Administrator1. To remove an item from a list set it to null
mySelectObject.options[3] = null
2. To truncate a list set its length to the maximum size you desire
mySelectObject.length = 2
3. To delete all options in a select object set the length to 0.
mySelectObject.leng
Submitted by: Administrator
mySelectObject.options[3] = null
2. To truncate a list set its length to the maximum size you desire
mySelectObject.length = 2
3. To delete all options in a select object set the length to 0.
mySelectObject.leng
Submitted by: Administrator
Read Online JavaScript Job Interview Questions And Answers
Top JavaScript Questions
☺ | Are you concerned that older browsers don't support JavaScript and thus exclude a set of Web users? individual users? |
☺ | How to make elements invisible? |
☺ | How to use "join()" to create a string from an array using JavaScript? |
☺ | How to create a popup warning box? |
☺ | What looping structures are there in JavaScript? |
Top Top World Wide Web Categories
☺ | Cascading Style Sheet CSS Interview Questions. |
☺ | HTML5 Interview Questions. |
☺ | Basic Internet Interview Questions. |
☺ | Domain Name System (DNS) Interview Questions. |
☺ | JavaScript Interview Questions. |