Customised control button help

Customised control button help

kenraynerkenrayner Posts: 11Questions: 4Answers: 0

Hello

Would love some guidance on this one... I would like to do what's done in this example:

https://editor.datatables.net/examples/api/triggerButton.html

Where the custom control button adds 250 to the salary - but instead to read a value from a select dropdown on the page. I can't see a way of including the select (which will be populated from data from a different table) in the table control itself - or should I simply have that select outside of the table control area and call a document.getElementById on it followed by a selectedIndex.value and pass that to the script? Appreciate advice on the tidiest way to achieve this.

Would also like to have the action read multiple rows too - so I'd be collecting a single value from the select (from a different table) and multiple ID values from the table.

Many thanks

Ken

This discussion has been closed.