Shortening a block of code.
Is there a way of writing the code below in a shortened version?
- $(".radioButtScoreGrid").eq(n).find("input:lt(3)").prop("disabled", false);
- $(".radioButtScoreGrid").eq(n).find("input:lt(3)").prop("checked", false);
-
- $(".radioButtScoreGrid").eq(n).find("input:eq(4)").prop("disabled", false); $(".radioButtScoreGrid").eq(n).find("input:eq(4)").prop("checked", false);
I was thinking of something along the lines of:
- $(".radioButtScoreGrid").eq(n).find("input:lt(3) && input:eq(4)").prop("disabled", false).;
- $(".radioButtScoreGrid").eq(n).find("input:lt(3) && input:eq(4)").prop("checked", false).;
Thanks in advance.