Hi! I need to compare the data in a specific field in selected rows in order to disable/enable some external buttons. Initially, I only needed to enable the buttons based on whether rows were selected or not, so it was pretty trivial:
1.if (selected.length == 0) {
2.$('#fancyButton1, #fancyButton2').attr('disabled', 'disabled');
3.} else if (selected.length > 0) {
4.$('#fancyButton1, #fancyButton2').attr('disabled', false);
5.}
Now, I need to compare the numeric values in a specific field, and if they are all equal, THEN enable the buttons.. can someone provide an example?