JQuery issue (basic) with IE - all versions

This only happens with IE (all versions), on line 1120 in jquery-1.2.6.js I get the following error:

Line 1120:
Invalid Property Value

      

The line in the js file is as follows:

elem[name] = value;

      

Inside attr: function( elem, name, value )

Does anyone have a problem like this?

0


source to share


3 answers


If it is , you too, it looks like you are trying to change the CSS of the element, not give it an attribute.

If so, try this instead:



jQuery.css('color', 'inherit');

      

+6


source


This error can also occur if you call jQuery.css with an invalid attribute value, for example:



$('div.foo').css('padding-left', 'NaNpx');

      

0


source


The problem is IE only, because you are probably trying to set something like "min-height" which exists in a (proper CSS-embedded) browser like Firefox, but not in a (daemon spawned) browser. such as Internet Explorer. I faced the same problem using jQuery dialog UI function.

I was a big jQuery proponent before, but it actually put a little egg on my face.

0


source







All Articles