mgibbs189

{{gist file=”test.js” lang=”javascript”}}
(functio($) {
$(document).on(‘facetwp-loaded’, function() {
$(‘.facetwp-facet-lneas_de_actividad .facetwp-checkbox’).each(function() {
var the_val = $(this).attr(‘data-value’); // get the value
$(this).prepend(‘<img src=”‘ + the_val + ‘.jpg” />’); // prepend with an image named <value>.jpg
});
});
})(jQuery);
{{/gist}}