jeudi 19 décembre 2019

How to compare items of an array

I am creating an array taking values from dynamically created input field.

temp[i] = {
            custAccId:$('#accId'+ i).val(), 
            accountNumber: $('#account'+ i).val(),
            ifscCode: $('#ifsc'+ i).val(),          
        }

Here I have to check if $('#account0').val()===$('#account1').val() and so on so forth. How do I do that? Please note I have to check the same condition for IFSC code value as well.

Aucun commentaire:

Enregistrer un commentaire