Solved

uncheck checkbox and disable in IE8

Posted on 2014-02-12
1
619 Views
Last Modified: 2014-04-29
Hi,

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

Thanks
0
Comment
Question by:Al4ddin2
1 Comment
 
LVL 22

Accepted Solution

by:
Snarf0001 earned 500 total points
ID: 39854084
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

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction Got endorsements from your clients?  Great!  There is almost nothing better than word-of-mouth advertising.  But how can you do that on the internet?  Sure you can make a page for endorsement quotations and list them all, but who is …
Introduction Chart.js, used properly, can visually add a difference to your charting applications. It engages your visitors and allows them to interact with data they otherwise wouldn't be able to without expensive and complicated systems. For this…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question