I am creating my jQuery element like this:
var addLink = $("<a/>",
{
click: function () { },
css:{}
});
How can I apply css to change the color of the text?
UPDATE 1:
I can do the following but looking for a self contained model.
var addLink = $("<a/>",
{
click: function () { }
}).css("color","blue");
You can specify any style you want to set as key/value pair in the object.