Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

209
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda