Hi,Please tell me, i've to do 2 select boxes for font name, size and a button for font.I am also having more than a textarea. I f i'm entering a text like hi welcome. I've to select the value from the select box.After selecting the values, i'll select the entered text like welcome and i've to click the font button. By clicking the font button my selected text will be seen like <font size=3 name=times new roman>welcome<font>.I dont know how to do this. Please help me.

Simply, i need to move the event handler from the select element to a button, and have it call a function to get all of the values from the various dropdowns and build the markup text to wrap the selected text with. How to do this please tell me.

Jquery can do what you're looking for relatively easily. here's a little example of using a button to modify a paragraph. I'll leave using a select box to specify allowable style options as an exercise for you, but http://www.w3schools.com/jquery/ has all of the tutorials you need

Thanks seandisanti.I made the selectbox and button.Now what i am trying to do is for example, take our forum's reply text area. The fields seen are bold,italic,underline,quote etc and finally font color. I want to do like that in my form. By clicking the font color button various colors are seen. I want to do like that.please help me how to do that.