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

138
Vistas
how to get an element from other ruby file

I want to change the background color of a class in fixtures class, but I don't know how to get the element (I am trying to change it from another file). How do I get the card element from page_edit.html.erb file, as shown below?

I want to change the background of(db>fixtures>page_template.rb ):

<div class="card" style="...">
  <div class="card-body py-3">
    ...
  </div>
</div>

where I change the color:( views>refarral>page_edit.html.erb)

$("#favcolor").on("change", function () {
  $(".card").css("background-color", $("#favcolor").val());
});
about 4 years ago · Juan Pablo Isaza
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