views:

162

answers:

1

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?

+9  A: 

You need to build the selector as a string:

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