Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhanced selected option detection to fix default title in IE8 #1047

Merged
merged 1 commit into from
May 31, 2015

Conversation

TwanVermeulen
Copy link
Contributor

Currently the default title option doesn't work in IE8.

This plugin checks if there is a (pre)selected option available, and only shows the title as the first default option when that check fails.

This check works fine for most browsers, but in IE8 that check is always passed.

IE8 always returns selected for the selected option, even if the markup doesn't have it. Other browsers return null in that case.

jQuery's attr() method is more advanced and returns the expected results

Source

caseyjhol added a commit that referenced this pull request May 31, 2015
Enhanced selected option detection to fix default title in IE8
@caseyjhol caseyjhol merged commit 1b2fecb into snapappointments:master May 31, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants