Automatically Select Row in OnChange Event of Datepicker
Automatically Select Row in OnChange Event of Datepicker
c-myers1
Posts: 43Questions: 16Answers: 0
My use case: (1) when a date is picked, I want the row automatically selected (checkbox ticked, row highlighted). (2) When checkbox is unchecked, I want the datepicker field blanked out.
I've achieved item (2) but stuck with item (1). This is related to https://datatables.net/forums/discussion/48727/checkbox-selection-on-remote-ajax-data#latest.
I've tried row.select() and row().select(): both do not work.
How do I get this done?
This discussion has been closed.
Answers
You would use
row().select()
. You will need to provide arow-selector
that references the row you are working with. You can look atrow()
for more details.Kevin