Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6175737
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T23:58:35+00:00 2026-05-23T23:58:35+00:00

All, On our website we are having issues with getting any jquery code to

  • 0

All,

On our website we are having issues with getting any jquery code to execute in IE7 (IE9 running in IE7 compatibility mode).

What is confusing is that the javascript code is running fine (for validation & css properties change), however, none of the jquery code is running in IE7 mode.

Below is snippet of jquery code (placed inside a Drupal block) we are using on our site for showing a jquery popup after a user email has been accepted into the db.

<?php
drupal_add_js('jQuery(document).ready(function () {
jQuery(".input1").keypress(function(){
jQuery(this).css({
"color": "black",
});
});
jQuery(".input2").blur(function(){
var itext= jQuery(this).val();
if(itext=="email address" || itext=="enter invite code")
{
jQuery(this).css({
"color": "rgb(200,200,200)",
});
}
});','inline');
?>

The problem is that this code runs fine in all browsers except IE6 & IE7. Would you someone please shed some light on where we might be going wrong with making our site compatible with IE7.

Best,

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T23:58:36+00:00Added an answer on May 23, 2026 at 11:58 pm

    Dear the internet explorer is quiet strict in interpreting your syntax.
    It wouldn’t allow your syntax to be executed, no matter how a small silly mistake you left.
    Remove the comma at the end of the last property of your css. that is after “black” and “rgb(…)”

    jQuery(this).css({
    "color": "black"
    });
    

    hopefully, it will work

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

we are developing an application with flex builder and all our code + fla
Hi all , i'm testing out a service for internal ads on our website...
Currently all our files are stored on a Windows network drive and with 15
we're currently generating all our official documents using XSL-FO transformation using .xml files as
We are bringing a new project in house and whereas previously all our work
A few weeks ago, I was assigned to evaluate all our programmers. I'm very
We have a SQL Server 2005 database, and currently all our users are connecting
Not sure this is a programming question, but we use LaTeX for all our
All of our C++ headers use a .h extension. Eclipse thinks these are C
We put all of our unit tests in their own projects. We find that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.