Can the color of this text be changed as it is inputted by the user in the text box through css only..
<html>
<head>
</head>
<input type="text" id="name1" name="name1" />
Can the color of this text be changed as it is inputted by the user in the text box through css only..
<html>
<head>
</head>
<input type="text" id="name1" name="name1" />
I'm getting your question like this: You want to change the text color in text box to the color name that has been typed into that text box.
if my interpretation is right then, following jQuery snippet will do the thing:
$("#name1").css("color", $("#name1").text());