• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 828
  • Last Modified:

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.
0
swarajya
Asked:
swarajya
1 Solution
 
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
 
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
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
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
 
swarajyaAuthor Commented:
Freetext box worked for me.

Thanks
0
 
rajapandian_81Commented:
Welcome :-)
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now