I am looking for a css selector check if a given attribute is inside a value.
For instance:
I have a <a class="myClass" href="Administration/Menus"></a> and a value: Administration/Menus/Create
My goal is to select all elements where value contains the content of href.
I tried doing the following $('.myClass [href*="' + value + '"]')
But this doesnt work since my href doesnt contain value, instead value contains href...
$('.myClass[href*="' + value + '"]')as there's only one element and space indicates childhref="Administration"? Or is it always just removing the last part of the path?