I have this code here:
$('*[id*=ask]:visible').each(function questions() {
pollQuestions = $(this).val();
});
This only displays the latest input's value from a row of inputs. (I am appending more inputs with a click). I want instead an array of all inputs' values. The appended inputs have id's like 'id="ask[1]"', 'id="ask[2]"', etc.
Thank you
Aucun commentaire:
Enregistrer un commentaire