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

238
Views
How to manipulate the DOM with Datatables and change the search box position

I've been reading the official documentation and trying to understand how to change the location of the default search box with DOM manipulation but I couldn't make it work.

LIVE DATATABLE DEMO

So basically what I want is to change the location of the search box and place it within the <input title="Search"... code keeping the same features.

I though this would do the trick, but it doesn't:

"dom": '<"#search"f>'

Any help would be appreciated.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You can hide the search field with

dom: 'lrt'

and then you need to activate the search from your field with

// I have added id="search" to your search field to make it easier
$('#search').on('input', () =>
{
    DT1.search($('#search').val()).draw();
});

Here is the working fiddle

http://live.datatables.net/vepedopa/3/edit

about 4 years ago · Juan Pablo Isaza Report
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!