Operate the HTML's select object
2011-10-23 10:44
369 查看
var select = document.getElementById("selectID");
var optionValue = select.options[select.selectedIndex].value;
var optionText = select.options[select.selectedIndex].text;
var optionValue = select.options[select.selectedIndex].value;
var optionText = select.options[select.selectedIndex].text;
相关文章推荐
- BUG: Internet Explorer Fails to Set the innerHTML Property of the Select Object
- How do we release the GDI object when we use selectobject choosing a brush?
- About SWFObject generated by Flash Professional, and the HTML tag with clsid
- To select the file to upload we can use the standard HTML input control of type
- using JS to control two select(html),the data can be loaded from database and XML,and show in the select
- Dynamic HTML and XML: The XMLHttpRequest Object
- bug宝典之bootstrap [object HTMLSelectElement]
- How to: Access the HTML Source in the Managed HTML Document Object Model
- [转]Dynamic HTML and XML : The XMLHttpRequest Object
- javascript operate Html select elements
- The Attributes property of a ListItem control only works within an HtmlSelect control
- hibernate在saveOrUpdate时,update报错:a different object with the same identifier value was already assoc
- Retrieving Data Using the SQL SELECT Statement
- HTTP Status 500 - tag 'select', field 'list', name 'vehicle.vehicleType.id': The requested list key
- android studio 发布app出错:please select the product flavors to build and sign
- org.hibernate.TransientObjectException:The given object has a null identifier
- windows shared memory -- msdn document of the file mapping object
- 为Html的Select加一个输入的方法
- ERROR 1222 (21000): The used SELECT statements have a different number of columns
- The Swing HTML Parser