Set search filter back to readonly false
Set search filter back to readonly false
bbrindza
Posts: 316Questions: 73Answers: 1
I am using a Bootstrap modal when a DataTable row is click I need to set all input attributes of the modal to readonly true .
$('input').attr('readonly', true)
When the modal is closed, I set need set the DataTable search filter back to readonly false.
I tried this code, but it does not work.
$("#workOrderTable_1_filter label input").attr('readonly', false);
What am I missing.
This question has an accepted answers - jump to answer
Answers
Your code snippet works here:
http://live.datatables.net/bepekafa/1/edit
Maybe
#workOrderTable_1_filter
is incorrect? Please post a link to your page or a test case replicating the problem so we can take a look.https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
Kevin
Dooh.... typo in table name. Thanks Kevin and sorry for wasting your time. Happy New Year