mercredi 30 octobre 2019

Uncaught SyntaxError: Invalid or unexpected token duplicated

$('#add').click(function () {
      i++;

      // add to button Add to append more input field
      $('#dynamic_field').append(''+
      '<tr id="row'+i+
      '"class="dynamic_added"><td><input type="text" name="title[]" 
        placeholder="Masukan Teks Informasi" class="form-control"></td>' + 
      '<td><button type="button" name="remove" id="' +i+ '" class="btn 
        btn-danger btn_remove">X</button></td>' + 
      '</tr>');
   });

i have a problems with this code:

'"class="dynamic_added"><td><input type="text" name="title[]" 

i dont know what the erros in that line



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire