Trying to get to work this bit of a code
<script type="text/javascript">
$(function (){
if ( document.location.href.indexOf('product') > -1){
$('.featproducts').addClass("display-none")
}
});
</script>
The URL is: http://domsveta.by/katalog/product/3919-
Here's some test fiddle http://jsfiddle.net/83H63/5/
I'm afraid it's in Russian so it's gonna create some complecations in understanding.
Any idea why it doesn't work? Thanks
I want to assign a class .display-none
to any the element of class "featproducts"
if it is shown on the page with "product"
in the URL
UPDATE
In the fiddle http://jsfiddle.net/83H63/5/
Using the #
I was able to add a class to an element
However on the production site I wasn't able to do it using either #
or .featproducts
So it's not the code that's faily.
Thank you for your heads up.