$("button[value='submit']) selector has different behaviour in IE8 and other browsers
For a tag button like this, that has an attribute "value" assigned and also contains some string (different from the "value" attribute):
- <button type="submit" value="submit">Send</button>
selector
- $("button[value='submit']")
returns an empty set in IE8, while in other browsers (FF, Opera, Safari, Chrome), it gets me the right button.
Although selecting the button using
- $("button[value='Send']")
works in IE8, while returns an empty set in other browsers.
I couldn't find any information in the CSS specification regarding this issue, but anyway I think jQuery should produce the same result in any browser.