var elementUid = jQuery(this).find("input").attr("value"); 'undefined' is null or not an object @IE8

StackOverflow https://stackoverflow.com/questions/23369656

質問

Can you please help me?

In IE10 / FF / Chrome it works like a charm, but in IE8, at this line:

var elementUid = jQuery(this).find("input").attr("value");

I get the error: 'undefined' is null or not an object

Thank you!

役に立ちましたか?

解決

The problem was from the event loads, after I replaced

$(document).ready(function ()

with

$(window).load(function ()

the variable was loaded corectly.

Thank you for your sugestions and help!

他のヒント

may be useful.

var elementUid = jQuery(this).find("input").prop("value");
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top