TextBox Foreground color in jquery

前端 未结 3 372
北荒
北荒 2021-01-28 05:12

Why isn\'t this piece of code working?

$(\"#TextOne\").animate({ color: \"#FFFF00\" }, 800);

When i call it on a button click it does nothing.

3条回答
  •  無奈伤痛
    2021-01-28 05:52

    Are you using the color plugin (or jQuery UI)?

    Without one of these it won't work because jQuery does not natively support the animation of color properties.

提交回复
热议问题