N
|
Nir Frumer 1/27/2021 |
hi |
R
|
RBrogen author 1/27/2021 |
Hey Nir ... THANK YOU that worked perfectly! I had gotten the disable to work but couldn't get the checkbox function part to work so your solution was exactly what I needed! Thanks again and have a great evening! hi this is how I do it on the javascript onload //--- var id = "MyButtonID"; var button = $("[id^=" + id + "]"); Runner.addDisabledClass(button); $(':checkbox').change(function() { var c = $('input[name="selection[]"]:checked').length; if (c>0) { Runner.delDisabledClass(button); } else { Runner.addDisabledClass(button); } }); //--- hope it helps, Nir. |