• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Strike the value inside a text field

 
Abhinand Kunjayyappan
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I wanted to display the value inside a text box with strike, similer to the HTML tag <strike>this is striked</strike>.

Is this possible using HTML or javascript or any other way in a web page.

Thanks
Abhinand
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Abhinand",

There aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks!
Eric
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
All of the text would have to be striked out



Eric
 
Abhinand Kunjayyappan
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Thanks for the solution.

i have one more requirement. i want to display values in text field in 2 styles.
i want to display two words in the text field, one word should be striked and the other should be displayed as normal.
eg: if i have "abc" and "xyz" to be displayed in the text field, i want "abc" to be striked and "xyz" as normal.

Is this possible. Also is it possible if i have more than two values and i want some selected words to be displayed with a strike.

Thanks,
Abhinand Kunjayyappan
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65217
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Abhinand Kunjayyappan:
Is this possible.


No.
 
Abhinand Kunjayyappan
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Thanks for the information.
I will try to change my requirement and display the values in two different fields.

Thanks,
Abhinand Kunjayyappan
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic