N
|
Nir Frumer 10/14/2019 |
hi |
K
|
keithh0427 author 10/14/2019 |
hi on javascript onload var id = "Delete button label"; var button = $("[id^=" + id + "]"); Runner.addDisabledClass(button); $(':checkbox').change(function() { var c = $('input[name="selection[]"]:checked').length; if (c==1) Runner.delDisabledClass(button); else Runner.addDisabledClass(button); }); hope it helps, Nir. |
K
|
keithh0427 author 10/14/2019 |
hi on javascript onload var id = "Delete button label"; var button = $("[id^=" + id + "]"); Runner.addDisabledClass(button); $(':checkbox').change(function() { var c = $('input[name="selection[]"]:checked').length; if (c==1) Runner.delDisabledClass(button); else Runner.addDisabledClass(button); }); hope it helps, Nir.
|
![]() |
Admin 10/14/2019 |
This code disables/enables Delete button based on the number of selected checkboxes. You need to modify this code replacing "Delete button label" with the actual label of Delete button. |
K
|
keithh0427 author 10/14/2019 |
Thank you! |