[英]IE8 and .val problems
I'm having a problem with IE8 and my function. IE8和我的功能出现问题。 My function works fine in other browsers, but as usual IE8 is being a pain.
我的功能在其他浏览器上也能正常工作,但是像往常一样,IE8让人很痛苦。 Some boxes will be filled in while others won't be.
一些盒子将被填充,而另一些则不会。 I have checked my hash to make sure there was a value there, and the value is defined.
我检查了我的哈希以确保那里有一个值,并且该值已定义。 IE8 is just choosing not to fill in some inputs.
IE8只是选择不填写某些输入。 Any idea what the problem might be?
知道可能是什么问题吗?
var fillTemplate = function(jsonResponse) {
periods = jsonResponse['#input_periods'];
generatePeriodInput();
var $this = $(this);
$.each(jsonResponse, function(key, value) {
$(key).val(value);
});
}
Solved. 解决了。 Thanks to adam_bear I was able to solve this problem.
多亏了adam_bear,我得以解决此问题。 I had to rename some of my ids.
我必须重命名一些ID。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.