This seems not to be the right way:
$(".row-fluid div").each(function() {
var $this = $(this),
getClassLFT = $this.attr("class").split(" ").map(function(item) {
return item.indexOf("lineFromTop") === -1 ? "" : item;
});
// following line throws the error
$this.find("."+ getClassLFT[0]).wrapAll("<div class='clear' />");
});
The last line throws following error: Syntax error, unrecognized expression: .
I want to get the first (and it's the only) value in this object. How can I handle that?