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

169
Views
Get output of jquery code in django views

I want to get the output of the jquery function which appends the selected rows ID into views.py I am using the code from this link: https://jsfiddle.net/snqw56dw/3182/ Need your help to get the selected data into views.py file.

$('#frm-example').on('submit', function(e){
  var form = this;
  
  var rows_selected = table.column(0).checkboxes.selected();

  // Iterate over all selected checkboxes
  $.each(rows_selected, function(index, rowId){
     // Create a hidden element 
     $(form).append(
         $('<input>')
            .attr('type', 'hidden')
            .attr('name', 'id[]')
            .val(rowId)
     );
  });
about 4 years ago · Santiago Gelvez
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!