Solved

Jquery not working in IE 10

Posted on 2014-09-26
7
1,051 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Are You Using the Best Web Development Editor?

The worlds of web hosting and web development are constantly evolving. Every year we see design trends change, coding standards adapt and new frameworks/CMS created. With such a quick pace of change it’s easy to get lost trying to keep up.

See if your editor made the list.

 

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 500 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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
How to build a simple, quick and effective accordion menu using just 15 lines of jQuery and 2 css classes
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
Course of the Month10 days, 11 hours left to enroll

631 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