The problem in IE8 is that selectedValuepost is directly sent to the background, and an error is reported when the background receives the message. This is because selectedValue in IE8 is used as an array and cannot be identified in the background when jquery is used to obtain the select statement, generally:
Var selectedValue = $ ("# a"). val ();
In non-IE8, the value of selectedValue is "1", and the typeof selectedValue is "string ".
In IE8, the value of selectedValue is ["1"], and the typeof selectedValue is "objectg ".
If selectedValue post is directly sent to the background, an error is reported when the background receives the post because selectedValue in IE8 is regarded as an array during transmission and cannot be identified in the background.
The solution code is as follows:
SelectedValue = typeof selectedValue = "object "? SelectedValue [0]: selectedValue;
In this way, selectedValue is a string.
In addition, this will cause other problems:
Var a = selectedValue. trim ();
This Code cannot be executed in IE8, possibly because of the above.
Run the following code:
$. Trim (selectedValue );