This topic is locked
[SOLVED]

 Access values from list page with Javascript

5/5/2020 6:52:29 AM
PHPRunner General questions
S
sadisticmagician author

Hello,
I have a custom button in 'LIST PAGE'

$value = '<a class="custom_button btn btn-primary">CUSTOM BUTTON</a>';


how can I get its values using javascript on 'Javascript OnLoad Event' ?
something like this:

$(".custom_button").on("click", function() {

alert(id); // ID or other DB values associated at this specific row

});


thanks!

S
sadisticmagician author 5/5/2020



Hello,
I have a custom button in 'LIST PAGE'

$value = '<a class="custom_button btn btn-primary">CUSTOM BUTTON</a>';


how can I get its values using javascript on 'Javascript OnLoad Event' ?
something like this:

$(".custom_button").on("click", function() {

alert(id); // ID or other DB values associated at this specific row

});


thanks!


Solved using Custom Button with 'Client Before' and 'Client after'