I am attempting use a variable to fill in the property value of this CSS jQuery code. In the example below I am using an array to try to fill it in but it is giving me an error. I've attempted this without using it as an array where "tops" equaled "bottom" but still nothing.
var tops = [ '"top"', '"bottom"' ];
$(div).css({ tops[1] : 5 });