Jquery in Drupal 7 in IE7 -


all,

on our website having issues getting jquery code execute in ie7 (ie9 running in ie7 compatibility mode).

what confusing javascript code running fine (for validation & css properties change), however, none of jquery code running in ie7 mode.

below snippet of jquery code (placed inside drupal block) using on our site showing jquery popup after user email has been accepted 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 code runs fine in browsers except ie6 & ie7. please shed light on might going wrong making our site compatible ie7.

best,

dear internet explorer quiet strict in interpreting syntax. wouldn't allow syntax executed, no matter how small silly mistake left. remove comma @ end of last property of css. after "black" , "rgb(...)"

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

hopefully, work


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

android - layout with fragment and framelayout replaced by another fragment and framelayout -