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