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