Answer the question
In order to leave comments, you need to log in
How to fill an array in each?
$('.fields .services').each(function() {
var field = $('select option:selected', this).text() + ';' + $('.sum-input', this).val();
var fields = array();
alert(field);
});
Answer the question
In order to leave comments, you need to log in
Maybe we should not reinvent the wheel, but take a ready-made serializeArray() method ?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question