If I click add button then the same for will added next to the previous. I wan to get the values of input fields of each forms using each() function. I tried running below code.
$('.question-div').each(function(i) {
//to get Degree field value.
console.log($(".question_Degree_0").val());
});
The problem is like this way I only get two times the same value of the first form's Degree value. For example if I select 1 in first form, and if I add one more form, the second time also get the value '1' in Degree value though I select different value.. My question is what can I do so that I can get values of input fields using each() function?
Thank you.
console.log($(".question_Degree_0", this).val());