Results 1 to 4 of 4

Thread: HTML or Javascript: different input text on screen?

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Mar 2004
    Posts
    19

    HTML or Javascript: different input text on screen?

    Hi Everyone,

    I am not sure there is a simple solution here, but what I am trying to do is emphasis a certain word from the users' input. For instance,

    When I type "Standy and Kirk", it would appear as
    Standy and Kirk on the input textbox.
    Yet, I don't want the value of the input tag become "Standy <b><i>and</i></b> Kirk "

    Can anyone help me here? Thank you!

    Cheers,
    Kell

  2. #2
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    I'm sorry but I don't think that inputs support HTML, it's just plain text.
    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

  3. #3
    Fanatic Member McCain's Avatar
    Join Date
    Jan 2002
    Location
    Sweden/Denmark
    Posts
    802
    I'm not quite sure I understand what you want to do. Do you have a <textarea> and as the user types you want some words to become bold?
    Or are you submitting text from a <textarea> and then, when the text shows up on the page (after beeing submited) you want some words to be bold?
    Never argue with fools, they will only drag you down to their level, and beat you with experience.

    Q: How do you tell an experienced hacker from a novice?
    A: The latter thinks there's 1000 bytes in a kilobyte, while the former is sure there's 1024 meters in a kilometer

  4. #4
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    I think he has a search input and wants to highlight keywords.

    I'm afraid that's not possible with a normal input. Which means that there's no portable solution.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width