I have an input box, where i would like a text to disappear. After googling around i found a nice solution over here: Fade out text value inside of text field using jQuery
However, for some reason it does not work with my code over here:
$(document).ready(function(){
var input = $("#textboxid").val()
input.animate({color:'white'},1000, function(){
$(this).val('').css('color','black');
}
});
Could you tell where i'm mistaken? thank you
EDIT: The text should disappear after user typed something in.