like this
$("xx").animate({ width: "+=10px" },1000);

this will add 10 pixels to the width, in a second.


Kean wrote:
Probably there's a better way. Doesn't look elegant.

$('xx').width($('xx').width()++) ;

On Jan 21, 2:05 am, "David .Wu" <chan1...@gmail.com> wrote:
some times we want to do some animation we use xxx.width++
in jQuery we give value like this $('xx').width(value)

how to do ++ thing in this way?

Reply via email to