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();
精彩评论