On Tuesday 13 November 2007 11:26, XASD wrote: > function in place of value for property dosen't work. > > Thanks.
try using a closure? $('#foo').css("borderTop",(function(){ return "5px"; })()); eg: return the string rather than an actual anon function pointer (as in the subject)