Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

207
Visualizações
Is there a wat to style just the user input text in a <input type ="text"> not the input field itself?

I am using Cordova to make an android app and I have a text field where the user types into. Im using a keyboard function so I can listen for the done key on a text field. When the event fires I want to be able to "animate" the text that was just entered into the field. I don't necessarily want to animate it, but really just put a circular box around the text so that its clear the input has been accepted.

For example:

This is what it looks like after they've typed their text and before they've pressed done on the keyboard.

Text input before submit

When the event fires I want to style the text as such where the font weight changes and the background of the text gets bubbled. Is this possible?

Text input after submit

about 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

In the function that you're using to listen for the done key, you can use Element.classList.add() to add a class to the <input type="text"> element.

const inputElement = document.getElementById('your-input-element')
inputElement.classList.add('recipent-submitted')

Then apply whatever styling you want to .recipent-submitted in your CSS file.

about 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda