Why does IE8 fail to resolve my JQuery selector for a checked radio option?
问题 This following line works as expected in Firefox but IE returns 'undefined'. var selectedChoice = $("input[name='my.test[0].SelectedOption']:checked", '#myForm').val(); Here is a standalone sample that you can run... Note the problem seems to be the use of '.' and '[]' in the name of the radio element. However this is how ASP.NET MVC renders them. Here is an example which works fine in Firefox but fails in IE. <html> <head> <title>Testing radio selection jquery in IE 8</title> <script src=