Scipion
Scipion

Reputation: 11888

IE7 and jQuery (1.8.3) not compatible

I am hiding an element in my javascript :

$download_btn = jQuery('a#menu_download_btn');
...
$download_btn.hide();

It works fine for all my browsers/version but IE7. Are they simple not compatible ?

Thanks

Upvotes: 0

Views: 5701

Answers (3)

Scipion
Scipion

Reputation: 11888

The issue was linked to duplicate ids.

Upvotes: 0

Mohsin Ali Chidi
Mohsin Ali Chidi

Reputation: 131

IE 7 is compatible with jQuery (1.8.3). below link will let you know the browser support for the jQuery versions. http://jquery.com/browser-support/

Upvotes: 3

patrykf
patrykf

Reputation: 449

Well, jquery.com says they support IE 6+ for jQuery 1.X (http://jquery.com/browser-support/). I think You should try to hide div another way.

  1. You can try to detach() div and append() it or set html() of the parent when You want to show div.
  2. You can try to hide div by setting css('display', 'none') and css('display', 'your_display) for show.
  3. I think You should try toggle() either.

You should also check if your html and script is ok. Also console.log is a problem for ie so remove them if any.

Upvotes: 0

Related Questions