Add font tags to selected text in textbox or textarea
I want to increase the size of font using the select option for the selected text. Also by selecting the size the selected text must be viewed in the textbox like
Please anyone tell me how to do this.
you cannot do that!!!
well not any more with the new html5 and not in my book either.
Use css instead and then add a class to the element in question.
might be an advantage if you show what you have done so we can get an idea to what you are trying to do.
Sure.The following is my code.
Actually what i'm trying to do is, take our reply option as example. While u r clicking reply, the textarea with font name select,size select, color select is there.Like this i'm trying to do.
var i=0, el, selectedText, newText;
return;//prevents the double replacement
<select name="sizeselect" onchange="font([ques1,ques2,opt1,opt2,opt3,opt4],'font',this.value)">
Otherwise please tell me, is it possible to do the select box for font name and size also the color palatte and mathematical expressions.
I'm entering a text like "Hi, Welcome to w3schools.invisionzone.com" in a textbox. Now what i want to do is, i want to select the size,name color of font from the select box and after selecting the values i'll select the entered text from textarea, for example "w3schools.invisionzone.com". After selecting all these if i click a font button all the selected values has to be viewed inside the font tag as
<font size="3" name="times new roman" color="red">"w3schools.invisionzone.com"</font> in my textarea.How shall i do this.Please tell me.
I guessed that was what you were trying to do..
What you will have to do is see if you can con the admins to give you the code for this sites text box...
Last time I did sum fancy stuff like in this reply box and what you are after was with a plugin...
Please do not ask the name as I do not remember.... Maybe some-one else may know of one.
If you are willing to learn things your self try some homework
EG i found this in a few seconds
In the mean time when I have time and not to grumpy and tired I may have a look myself just to refresh my memory.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)