I have a class suffix named fadecontent in a joomla 3.0 website, and i have to loop trough all div's that have this class suffix using the $.each() function.
I tried this but it seems not to work with class suffixes. joomla docs: class suffix
$('.fadecontent').each(function(i, obj) {
with class suffix i mean this:
<div class="class classSuffix">exemple</div>
<!--example in my code-->
<div class="moduletable fadecontent">content</div>
How to archieve this?
EDIT: the script is in the <HEAD> tag
$(".fadecontent")should match the elements you're looking for.$('.fadecontent')should select<div class="moduletable fadecontent">content</div>. Problem lies elsewhere. May be missing$(document).ready().filter()into a regex match againstthis.className. Look around, there probably are lots of material dealing with this problem on the web.