php - How to add style to append function -


i want change color of font & make content align='center' content in append function.the content value fetched db & in array. please help!

currentrow     .find('td')     .next()     .css('background-color', 'red')     .addclass('active')     .attr("title", namearray[j])     .append(namearray[j]); 

here go,,

http://codepen.io/mkdizajn/pen/pjvwem?editors=101

hope solves it..

the key part think this:

$('table tr')     .eq(1) // find second row ex..     .find('td').eq(1) // find second cell ex..     .css('background-color', 'red') // give color     .addclass('active').attr("title", 'mirko').css('text-align', 'center') // center position ; 

hth


Comments