Simple jQuery not working in IE

Now I've noticed some simple jQuery doesn't work on IE9 and IE10 mobile. I have some copyright links and a simple sliding contact form that uses animation (). Also I am using the scrollTo plugin in combination with jQuery. I tried different versions and still haven't solved it. Maybe I'm missing something obvious.

Here is the code for one copyright link and a contact form for opening and closing.

$('#privacy').click(function(){
    $('#copyright').hide('fast');
    $('#policy').toggle('slow');
    $.scrollTo('+=800px', 800, { axis:'y' });
        });

$('#plusSign').click(function(){
    if ($('#contactFormHolder').hasClass('active')){
        $('#contactFormHolder').animate({top:'-200px'},1000).removeClass('active');
    }else{$('#contactFormHolder').animate({top:'0px'},1000).addClass('active');}

});

      

You can check it live at http://www.crazysunsets.com

+3


source to share


2 answers


Your markup is not valid, especially the script tag format:

Edit:

<script type="text/javascript ">

      

To:



<script type="text/javascript">

      

Remove the space after 'javascript'

Hooray!

+5


source


go to bottom path:
tools menu => internet Option => Advanced tab => in the list of settings => in the view group



unchecked the "Disable script debbugging (ie)" and "Disable script debbugging (others)" options (checkboxes). now refresh the page. those. send error string and error name to you!

+4


source







All Articles