I am using struts html tags in a jsp page and javascript.

We have a dropdown and a text box.
1. In a dropdown, we have elements like "A", "B" and "C".
After user selects one of the element, I want to display the selected element in the textbox for ex: if user selects "C", then "C" should be displayed in the textbox with style font as italic.

And when user clicks on textbox, the textbox value should become empty which had "C" earlier and whatever user types inside textbox should have style font as normal.