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

230
Visualizações
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 à 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