是否可以使用jQuery选择<a>href以"ABC"结尾的所有链接?
例如,如果我想找到此链接 <a href="http://server/page.aspx?id=ABC">
我正在使用editArea库和jquery来做我需要的...
http://www.cdolivet.com/index.php?page=editArea&sess=2b8243f679e0d472397bfa959e1d3841
所以在我的HTML中有一个iframe标签,editArea使用我需要的东西来使用jquery访问类似的东西
$('iframe textarea').keydown(function (e){
number = 17; //any number really :)
if(e.which == number){
//do something...
alert('Done...');
}
});
Run Code Online (Sandbox Code Playgroud)
我尝试了以上但看起来它没有检测到该密钥.但是如果选择器是$(文档)它可以工作,因此函数的其余部分工作它只是它没有拿起iframes textarea keydown
有任何想法吗?谢谢