$('#page').css('paddingTop',function(){ return '50px'; });
works perfectly for me! (v1.2.1)

(btw borderTop is not a particularly good example to choose because
it's a shorthand group of 3 other properties and, depending on the
browser being used, it may/may not have any affect)

On Nov 14, 1:57 pm, XASD <[EMAIL PROTECTED]> wrote:
> It's expected behavior,look 
> athttp://jquery.com/blog/2007/01/14/jquery-birthday-11-new-site-new-docs/
> :
> <qoute>
> You can now pass in a function as a value for an attribute or a css
> property. The function is executed and its return value is set as the
> value for the property.
> </quote>
> By the way,function is invoked(simple insert "alert" inside) but
> returned value is not used.
>
> On Nov 13, 7:26 pm, XASD <[EMAIL PROTECTED]> wrote:
>
> > functionin place of value for property dosen't work.
>
> > Thanks.

Reply via email to