I've got a dynamic multiple text input:
<input type="text" id="text_1">
<input type="text" id="text_2">
<input type="text" id="text_3">
<input type="text" id="text_4">
<input type="text" id="text_5"> ....
How do I get the id on each textinput with jQuery to edit:
$('#form').submit(function(){
$.post('include/setting.php', {
text_(id): $('#text_(id)').val(), // <--
}, 'json')
return false;
})
And with php how do I get the input id?