Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Jquery not working in IE 10

Posted on 2014-09-26
7
Medium Priority
?
1,136 Views
Last Modified: 2014-09-29
I have a jquery function that toggles see more + and see less+ off and on which works fine in Firefox and Chrome. It does not work in Internet Explorer 10 (but does seem to work in IE9).
Below is the script

 <script>  
        $(document).ready(function(){
      $("p[id^='seeall']").click(function() {
            var $this = $(this);
         $(this).next("div").toggle();
      if ('see more +' == $this.text( )) {
    $this.text('see less -').parent( ).find('.hidden').show( );
    }
    else {
    $this.text('see more +').parent( ).find('.hidden').hide( );
    }
      });
      });
   </script>
0
Comment
Question by:cbeverly
  • 4
  • 3
7 Comments
 
LVL 58

Expert Comment

by:Gary
ID: 40346659
Got a link to the page?
0
 

Author Comment

by:cbeverly
ID: 40346677
http://americanart.si.edu/collections/search/artwork/results/index.cfm?rows=10&q=James+Castle&page=1&start=0&x=0&y=0

You can see the See more+ see less+ on the right hand side underneath the light blue bar "Name"
0
 
LVL 58

Expert Comment

by:Gary
ID: 40346681
Working fine, do an hard refresh - maybe you have an old cached file.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:cbeverly
ID: 40346698
Did you test in IE 10?
0
 
LVL 58

Expert Comment

by:Gary
ID: 40346709
In an emulator, there is nothing in the code that would break in IE
0
 
LVL 58

Accepted Solution

by:
Gary earned 2000 total points
ID: 40346719
Just double check you're not in compatibility mode (even though it works in previous versions as well)
0
 

Author Closing Comment

by:cbeverly
ID: 40350674
You were so right. The user was in compatibility mode. Once I took her out it worked fine.
Thank you so much!!
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Introduction JSON is an acronym for JavaScript Object Notation.  It is a text-string data transport mechanism, capable of representing simple or complex data structures in a consistent and easy-to-read manner.  Similar in concept to XML, but more e…
This article discusses how to implement server side field validation and display customized error messages to the client.
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)
Suggested Courses

971 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