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