Mark text in a input field in a HTML form

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Michael Pedersen

    Mark text in a input field in a HTML form

    Hello

    Is there anybody how knows how to make a JavaScript code that marks a text
    string in an input field in a HTML form?

    Best regards
    Michael Pedersen


  • Morris

    #2
    Re: Mark text in a input field in a HTML form

    Use select().

    document.forms[0].nameOfInputFie ld.select()

    "Michael Pedersen" <spam@ecoline.d k> a écrit dans le message de
    news:407308d6$0 $28862$ba624c82 @nntp04.dk.teli a.net...[color=blue]
    > Hello
    >
    > Is there anybody how knows how to make a JavaScript code that marks a text
    > string in an input field in a HTML form?
    >
    > Best regards
    > Michael Pedersen
    >
    >[/color]


    Comment

    • Michael Pedersen

      #3
      Re: Mark text in a input field in a HTML form

      Thanks!!

      Michael
      "Morris" <morris2010@eud oramail.com> skrev i en meddelelse
      news:I7Icc.1065 15$2K3.2332755@ weber.videotron .net...[color=blue]
      > Use select().
      >
      > document.forms[0].nameOfInputFie ld.select()
      >
      > "Michael Pedersen" <spam@ecoline.d k> a écrit dans le message de
      > news:407308d6$0 $28862$ba624c82 @nntp04.dk.teli a.net...[color=green]
      > > Hello
      > >
      > > Is there anybody how knows how to make a JavaScript code that marks a[/color][/color]
      text[color=blue][color=green]
      > > string in an input field in a HTML form?
      > >
      > > Best regards
      > > Michael Pedersen
      > >
      > >[/color]
      >
      >[/color]


      Comment

      Working...