I am using a jQuery plugin that needs to add attribute to all inputs in a page.
$("input").attr('lang', 'fa');
I have no problem for adding this to all inputs except for DataTables search box that this code doesn't affect.
I also tried this code but it doesn't work:
$(document).ready(function () {
var table = $('#OrdersTable').dataTable();
$('.dataTables_filter input').attr('lang','fa');
$("input").attr('lang', 'fa');
});
Edit:
I tried many things but the problem still exists. To see the problem look at this link and type numbers in search box and the input box at the bottom of the page.