On Nov 12, 5:45 pm, Peter E Higgins <[EMAIL PROTECTED]> wrote: > On Tuesday 13 November 2007 11:26, XASD wrote: > > function in place of value for property dosen't work.
Is it expected to? > try using a closure? > $('#foo').css("borderTop",(function(){ return "5px"; })()); First, that's not a closure, it's just an immediate execution of an anonymous function (which can also be used to create a closure). Second, I can't think of any reason to do that over just using "5px" as the value :) Matt Kruse