permaculture playing cards*
The moose likes HTML, CSS and JavaScript and the fly likes Strike the value inside a text field Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Strike the value inside a text field" Watch "Strike the value inside a text field" New topic
Author

Strike the value inside a text field

Abhinand Kunjayyappan
Greenhorn

Joined: Mar 28, 2007
Posts: 6
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

Joined: Nov 08, 2001
Posts: 15376
    
    6
"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

Joined: Nov 08, 2001
Posts: 15376
    
    6
All of the text would have to be striked out



Eric
Abhinand Kunjayyappan
Greenhorn

Joined: Mar 28, 2007
Posts: 6
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

Joined: Jan 10, 2002
Posts: 60810
    
  65

Originally posted by Abhinand Kunjayyappan:
Is this possible.


No.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Abhinand Kunjayyappan
Greenhorn

Joined: Mar 28, 2007
Posts: 6
Hi,
Thanks for the information.
I will try to change my requirement and display the values in two different fields.

Thanks,
Abhinand Kunjayyappan
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Strike the value inside a text field
 
Similar Threads
How To Write Some Text in a Horizontal Rule?
Getting the value of the select box in a textbox
JTextpane html rendering problem
javascript to insert table and its data into html div tag
How to get last parent of a particular type?