Trigger an event when table row is checked

How do I trigger an event when one or more child table rows are checked?

I want to have more buttons appear the same way delete appears is child tables when rows are checked. Thanks.

did you get answer?

Hello, sorry for late reply. No, I did not. Ended up using buttons that are always visible to the user. Did you?

Hi @Peter_Macharia @nikita_sharma:

Try this in client script:

frappe.ui.form.on('Purchase Invoice', {
    refresh: function(frm) {
        frm.fields_dict.items.grid.wrapper.on('click', '.grid-row-check', function(event) {
            // Trigger your desired event here
            console.log("Do your thing here!");