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

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

Pregunta

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!

¿Fue útil?

Solución

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!

Otros consejos

may be useful.

var elementUid = jQuery(this).find("input").prop("value");
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top