开发者

.get() IE only issue

开发者 https://www.devze.com 2023-01-11 05:30 出处:网络
I am fetching some value from another page using jQuery .get() like this <input size=\"30\" id=\"abc\" value=\"\" type=\"text\" readonly=\"readonly\">

I am fetching some value from another page using jQuery .get() like this

<input size="30" id="abc" value="" type="text" readonly="readonly">
<input size="30" id="pqr" value="" type="text" readonly="readonly">    

$.get('clientarea.php?', function(data) {
var newVal = $('input[name=customfield[1]]', data).val();
$('#abc').val(newVal);
var newVal = $('input[name=customfield[2]]', data).val();
$('#pqr').val(newVal);
});

This script works fine in all browser except IE

What is wrong with this script ? Is there any issue with selecting name attr with jQuery in IE 开发者_Python百科?

Need your Help.

Thanks


Internet explorer has problems sometimes to realize an object is an XML object. I've successfully used the following workaround and it works fine:

http://rationalogic.com/development/jquery-ajax-and-internet-explorer/

0

精彩评论

暂无评论...
验证码 换一张
取 消