Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

228
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!