I wanted to rotate CSS font awesome direction (fa fa-arrow-up) on table column on each array element when the page load with provided angles. I create table dynamically from array using JavaScript. The arrow is displaying in table column, but not rotating. How i can attache direction rotation on each array element
//JavaScript
var html = '';
for (i = 0; i < 7; ++i){
html += '<tr id="list">';
html +='<td>'+ days[i] +'</td>';
html +='<td>'+ max[i] +'</td>';
html +='<td>'+ average[i] +'</td>';
html +='<td>'+ "<div class='fa fa-arrow-up'> </div>"+ '</br>' + windS[i] +'</td>';
html +='</tr>';
}
$('#weatherTable > tbody').html(html);
$(".fa-arrow-up").rotate(angle);