---
title: "获取select 所选option名面值"
author: "qingzuochen"
date: "2010-09-08T17:09:06Z"
tags: []
categories: ["Web前端"]
slug: "select-option"
draft: false
lastmod: "2010-09-08T17:09:06Z"
id: 758670
url: "https://zochen.iteye.com/blog/758670"
---

厌烦了每次碰到稍复杂的JS就到网上去搜索答案的行径，今天自己来原创一个JS。

目的为：获取select所选option名面值



```html
<select name="certStoreType" onchange="alert(this.item(this.options.selectedIndex).text)">
</select>
```