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

229
Vistas
get select value by jinja2 or pure html

I was using jinja2 to write front page.I got problem when I want to use value from a select tag by only using jinja2 or HTML.

Codes like this:

<select id="pair-select" class="card-title">
    <option selected value=1}>one</option>
    <option value=2}>two</option>
    <option value=3}>three</option>
</select>



<div class="table-responsive">
    <table class="table table-striped my-0">
    <thead>
    <tr>

    <th id="deep-table" colspan="2" style="text-align: center;">{{pair-select.val}} </th>
    // here I want to use the selected value 

    </tr>                       
    </thead>
    <tbody style="border-right:1px rgb(66, 65, 65) solid;">
    {% for order_book in order_books | reverse %}


    {% if order_book == pair-select.val %}    // also here I want to use selected value 


...
...
...                 
    </tbody>
    </table>

Can I use it only by jinja2?Otherwise I have to write all tables in javascript which seems to be diffcult.Or is there a better way to do?

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