I Have An Input type text as Following Code
<input type="text" minlength="1" maxlength="1" class="myinputs" name="myinputs[]" >
<input type="text" minlength="1" maxlength="1" class="myinputs" name="myinputs[]" >
<input type="text" minlength="1" maxlength="1" class="myinputs" name="myinputs[]" >
<input type="text" minlength="1" maxlength="1" class="myinputs" name="myinputs[]" >
And I use those inputs value as follow
//submitotp is my submit button
$("#submitotp").click(function(){
var otp = $(".myinputs").
//HERE i WANTS TO COMBINE ALL 4 Input
}
For Example If
Input-1 = 5
Input-2 = 4
Input-3 = 9
Input-4 = 2
var otp = 5492 //THIS IS O/p
Now What i want is to combine all input value to one. for that i refer this link. but didn't get any exact idea for this.also hearse about jQuery.merge() but not helpful or not understand. So how can i do this ?
class="myinputs[]"bename="myinputs[]"?$("#myinputs")looks forid="myinputs".