IE Specific JavaScript

Posted by Banderdash on Stack Overflow See other posts from Stack Overflow or by Banderdash
Published on 2010-04-28T18:16:08Z Indexed on 2010/04/28 18:47 UTC
Read the original article Hit count: 451

Filed under:
|

This feels like a stupid question, or one that could be answered with a little trial and error and some Googleing--but I assure you I have tried both and several ideas and am not getting the results I'm after.

Here are my JS includes for a site:

<!-- JavaScript -->
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>
<script type="text/javascript" src="js/accordian.js"></script>
<!--[if IE 7]><script type="text/javascript" src="js/ie-accordian.js"></script><![endif]-->

I'm simply trying to deliver the ie-accordian.js to IE 7 and accordian.js to all other browsers. Just not having any luck keeping IE 7 from using accordian.js as opposed to the one created especially for it.

Any thoughts?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about ie7