I am trying to apply a style to the inner div which is contained in the parent div. The parent div also contains tons of other div but I just want to apply the color to the [0] div.
$("#parentDiv div")[0].css('background-color', 'red');
For some reason it says "css function is not defined!"