I have some ajax request from database and for each echo I have some css code made for jquery css code.
If I have echoed:
echo '"background-color","red"';
And I by this code from ajax:
success: function(sup){
var code = sup;
$(#divy).css(code); }
If I alert(code); I get "background-color","red" But it won't work inside .css() code..
UPDATE: It can work if I have echoed some words and put if statement inside jquery code. And say if code is equal to some word change css.. But I want to know why first one does not work?