Code ตัวอย่างสำหรับใครที่อยากจะได้เพิ่ม input แบบ add ได้เรื่อยๆแล้วกด Submit แบบ jQuery
Soruce ตามนี้
document).ready(function(){ |
var i = $('input').size() + 1; |
$('#add').click(function() { |
$('<div><input type="text" class="field" name="dynamic[]" value="' + i + '" /></div>').fadeIn('slow').appendTo('.inputs'); |
$('#remove').click(function() { |
$('.field:last').remove(); |
$('#reset').click(function() { |
$('.field:last').remove(); |
$('.submit').click(function(){ |
$.each($('.field'), function() { |
answers.push($(this).val()); |
if(answers.length == 0) { |
Refer : http://papermashup.com/dynamically-add-form-inputs-and-submit-using-jquery/
Source Code
Merkur Futur Adjustable Safety Razor - Sears
ReplyDeleteMerkur Futur Adjustable Safety Razor wooricasinos.info is the perfect balance deccasino of performance, safety, https://septcasino.com/review/merit-casino/ and comfort. Made in Solingen, Germany, this razor ventureberg.com/ has a perfect balance of gri-go.com