SHARE
TWEET

Untitled

a guest Jul 23rd, 2019 79 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $.each(array_title_spek,function(key,value){
  2.     var value_title_spek = value;
  3.     var value_spek = array_spek[key];
  4.     if(key == 0) {
  5.         $('input[name="title_spek[]"]').val(value_title_spek);
  6.         $('input[name="spek[]"]').val(value_spek);
  7.     } else {
  8.         var konten  = '<div class="item form-group">';
  9.         konten += '<label class="control-label col-md-2 col-sm-3 col-xs-12"></label>';
  10.         konten += '<div class="col-md-3 col-sm-9 col-xs-12"><input id="title_spek" class="form-control col-md-7 col-xs-12" name="title_spek[]" autocomplete="off" value="'+value_title_spek+'" type="text" placeholder = "Title"/></div>';
  11.         konten += '<div class="col-md-5 col-sm-9 col-xs-12"><textarea id="spek" name="spek[]" class="form-control" placeholder="Spesifikasi">"'+value_spek+'"</textarea></div>';
  12.         konten += '<div class="col-md-1 col-sm-2 col-xs-2"><a href="javascript:;" class="btn btn-xs btn-danger remove-spek"><i class="fa fa-close"></i> Hapus</a>';
  13.         konten += '</div></div>';
  14.         $('#spek-list').append(konten);
  15.     }
  16. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top