uncheck checkbox and disable in IE8

Hi,

Is there a way for me to detect if a user is using IE8 and if so disable and uncheck a checkbox?

Thanks
Al4ddin2Asked:
Who is Participating?
 
Snarf0001Connect With a Mentor Commented:
You can use conditional comments.  Only IE recognizes them, other browsers assume they're simple comments and ignore.


<!--[if lte IE 8]>
<script>
    window.onload = function () {
        var chk = document.getElementById("blah");
        chk.checked = false;
        chk.disabled = true;
    }
</script>
<![endif]-->
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.