Why does the search break when I replace it with jquery with the exact same code?

Why does the search break when I replace it with jquery with the exact same code?

PaladinPaladin Posts: 12Questions: 4Answers: 0

Hello;

the search is a bit ugly so I decided to edit with some jquery but that work it and I wonder why?

I used this code:
jQuery("#DataTables_Table_0_filter label").replaceWith('<label>Search <input type="search" class="" placeholder="" aria-controls="DataTables_Table_0"></label>');

Answers

This discussion has been closed.