I create an array from splitting a string which have the css properties and then I pass the array to the css method but it doesn't work.
var cssString = "'top':'25px', 'height':'400px'";
var cssArray = new Array;
cssArray = cssString.split(",");
$("#div").css(cssArray);