I have two Buttons
like this:
var btn1 = $("#myButton1");
var btn2 = $("#myButton2");
Then I disable those Buttons
:
btn1.prop('disabled', true);
btn2.prop('disabled', true);
I tried to make a fast way by calling function like this:
$(btn1, btn2).prop('disabled', true); //just btn1 have prop assign
//or
[btn1, btn2].prop('disabled', true); //error here
How can I disable the Buttons
like this (i.e., without an error or a missing assign)?