How to add superscript and subscript in Textfield

Hi. I wanted to add subscript and superscript Word Like H20, H2So4.
but it is not possilbe with normal texfield. how it can be done in another way.
swarajyaAsked:
Who is Participating?
 
rajapandian_81Commented:
Use HTML editor. In below samples "X2" button is used for subscript and superscript.

Ajax:
http://www.asp.net/ajax/ajaxcontroltoolkit/Samples/HTMLEditor/HTMLEditor.aspx

FreeTextBox:
http://freetextbox.com/demos/

TinyMCE:
http://tinymce.moxiecode.com/examples/full.php

CK Editor:
http://ckeditor.com/demo
0
 
himanshutCommented:
Water H<sub>2</sub>O will result in H2O

similarly Carbondioxide CO<sub>2</sub> = CO2
0
 
ToraifCommented:
If you are dealing with textfield, regularely it will take only plain text which does not support subscripts and superscripts.
If you deal with HTML Codes, you can use himanshut tag mentioned above.
 
0
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

 
swarajyaAuthor Commented:
i m using it in admin panel means user can enter all this thing but it not supported. what else we can use for this
0
 
swarajyaAuthor Commented:
Freetext box worked for me.

Thanks
0
 
rajapandian_81Commented:
Welcome :-)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.