admin管理员组

文章数量:1416082

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?

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?

Share Improve this question asked Oct 16, 2009 at 14:04 ebattulgaebattulga 11k20 gold badges81 silver badges119 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 11

You need to build the selector as a string:

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

本文标签: javascriptjquery attribute selector problem Dynamic attribute selectorStack Overflow