I've tried to use regex to find all elements that have indexed id "modal[index]" like this
$("input[id=modal[\[0-9\+]]").attr("disabled", "false");
this error raised
Uncaught Error: Syntax error, unrecognized expression: input[id=modal[[0-9+]]
and tried using for loop but the same error occured
for(var j=1;j<11;j++)
$("input[id=modal["+j+"]]").attr("disabled", "false");
how to find these elements ?