【发布时间】:2011-09-27 15:58:30
【问题描述】:
谁能指出我在尝试查找包含“123456”的标签的href属性值时的错误?
$('input').click(function(){
$.ajax({
type : "GET",
url : 'transfer.html',
dataType : "html",
success: function(data) {
alert($(data).filter('a[href*="123456"]').attr('href'));
},
error : function() {
alert("Sorry, The requested property could not be found.");
}
});
});
提前致谢:)
【问题讨论】:
-
附注我已经尝试了 1000 种不同的方法,但我不会把它们都放在这里!他们都不适合我! :(
标签: jquery ajax filter tags href