I got a challenging task here and really hope that you can help me.
I am taking the info from json feed by ajax and want to add only first character of my item.title as content css attribute to the #list > .item:before
var str = item.title;
$('#list > .item:before').attr('content', str.substring(0,1));
But for some reason it doesn't work. Please advise me a line of code how to make it happen.
Thanks a lot in advance.