5 Replies Latest reply on Jun 10, 2015 5:00 AM by Test Screen Name

    Change the color of a word in input?

    nhatmn91

      Hi,

       

      I'm a new JavaScript user and I'm having this problem.

       

      I have to create a form, in which if someone types in something, like a vendor code for a nice furniture, the vendor code will automatically turns red.

       

      For example, my customer types in the code "ABC-1" or "ABC-2" (basically everything that starts with "ABC") and they automatically turn red: ABC-1, ABC-2.

       

      Thanks in advance.