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

119
Vistas
Cambio de color de fuente jQuery

Hola, estoy tratando de ajustar el siguiente código para agregar un cambio de color.

La línea en cuestión es: $("tfa_2287-HTML").css('color', 'white');

Me gustaría cambiar el color si se cumplen los criterios

¿Alguna idea sobre lo que está mal?

Este código se logró gracias al siguiente documento:

https://docs.google.com/document/d/1PQNbJbdMYlY7X3q_pVwrJqAgB2XsGiS1ZZTUMRHTaGI/edit#

 <script src=https://code.jquery.com/jquery-1.9.1.min.js></script> <script> $(document).ready(function() { //the id here should be for the FIELD on the form //this line is listening for a change to the field in order to execute the code $("#tfa_466").change(function(){ //the id here should be for the CHOICE on the form //":selected" is used for dropdowns, use ":checked" for radio and checkbox fields if($("#tfa_467").is(":selected") && $("#tfa_589").is(":Checked") || $("#tfa_590").is(":Checked")) { //primaryAction is the element name for the submit button //this will SHOW the submit button if the criteria above is met $(".wfPageNextButton").show(); $("#tfa_2287").hide(); $("#tfa_2287-HTML").css('color', 'white'); } else { //this will HIDE the submit button if the criteria above is not met $(".wfPageNextButton").hide(); $("#tfa_2287").show(); } }); }); </script>

ACTUALIZACIÓN: desde que se modificó el error tipográfico, reconoce el código solo por alguna razón, no cambia de color

 <div class="htmlContent" id="tfa_2287-HTML" style="color: blue;"><b></b><b>Please note you do not meet the criteria</b><p></p></div>
about 4 years ago · Santiago Gelvez
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