Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 830
  • 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
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

 
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
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.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

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