I have html input
<input id="txtSearch" value="Search..." type="text"/>
Is it possible to animate the value of this text input (i.e fadeout, hide, etc..)
$("#txtSearch").focusin(function () {
$(this).animate({ opacity: "1", left: "-=100px", width: "+=100px" }, 1000, function () {
$(this).attr("value", "");
});
});
Instead of making $(this).attr("value","")
i want to make the vlaue of this text disappear away with an animation like fadeout or hide.