How to retrieve the values of selected rows in a child table from .js file

I am going to pass the rows that are selected by a user from child table records. Which function is trigged when the user put a tick on row selecting check box ? and how to access that row’s record from the .js file

Aviresh do you still require help on this problem

This link might help

Ah I’ve come a long way since this post!

Here’s some docs that should help you

https://frappeframework.com/docs/user/en/api/form#frmget_selected
https://frappeframework.com/docs/user/en/api/form#child-table-events