I am looking for some urgent help with jquery , i have some input boxes and i want so retrieve their value as an array, the problem is that all the input boxes will be created dynamically with an add more button, so i am not sure how many of they would be, my code to create dynamic boxes is here.
$(function(){
x = 0;
$('#addmore a').live("click",function(){
x++;
$('#addmore').append('<input type="text" id="fname_' + x + '"/></p>');
return false;
});
});
now let say a person clicked addmore for 3 times now i will have 3 inputboxes with #fname_1, #fname_2 and #fname_3. now i want all the 3 values inside an array.
Thanks