开发者

jquery attribute selector problem: Dynamic attribute selector

My code is here

$("a[href=$.开发者_开发百科jqURL.url()]").hide();

$.jqURL.url() return current page url.

But this code don't work

Is it possible to select dynamically?


You need to build the selector as a string:

$("a[href=" + $.jqURL.url() + "]").hide();
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜