Home >Web Front-end >JS Tutorial >Use jQuery to solve the option disable attribute not supported by IE_jquery

Use jQuery to solve the option disable attribute not supported by IE_jquery

WBOY
WBOYOriginal
2016-05-16 18:52:43995browse
Use jQuery to solve the option disable attribute not supported by IE_jquery
In IE browser, it is useless to set the disable attribute for select options.

Certain means must be used to solve this problem. Of course, the principle is to remember the last selected option.
This.selectedIndex comes in handy.
You need to refresh to see the effect, because the output is all text and there is no js loading.

Statement:
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