0
I have a button that adds inputs onclick
and I would like to be able to save or effect the desired code in some for
for entry into the database.
This is the code onclick
$("#add_iframe").click(function(){
var lengt = $('.thumb').length;
var tao = lengt + 1;
$("#list_iframes").append('<label>Iframe '+tao+'</label><input type="text" placeholder="Insira o Iframe do Youtube Aqui" class="form-control thumb" name="iframe" />');
})
Possible duplicate of Pass Jquery variable to PHP
– William Aparecido Brandino
@Williamasimiliar Andean Look at mine reply, I’ll clear my doubt.
– I_like_trains