Strange ie behaviour with jquery inArray <p>Hello this seems to be working on IE8 :</p> <pre><code>var clsName = link.parents("div.fixed_column").attr("class").split(" "); if($.inArray("column_one", clsName) </code></pre> <p>While this one reports error (Object expected errror in jquery).</p> <pre><code>var clsName = link.parents("div.fixed_column").attr("class"); </code></pre> <p>What is the right way to do this? I thought purpose of inArray was that jquery will handle cross browser issues.</p>