
    		<div class="form-group">
			   <?php $nm_f="divisi";
			   echo form_hidden('id_divisi[]',$gd['id']);
			   echo form_hidden('unique[]',$unique);
			   ?>
			   <div class="col-sm-2">
                               <label for="<?php echo $nm_f?>">Nama Divisi</label>&nbsp;&nbsp;&nbsp;&nbsp;<label>
                                   
                                   <?php if($v>1){?><a href="#" onClick="hapusdiv(this)">(HAPUS)</a><?php }?></label>
				   </div><div class="col-sm-9">
				   <input type="text" name="<?php echo $nm_f.'[]'?>"  id="<?php echo $nm_f?>" value="<?php echo isset($gd['title']) ? $gd['title'] : '' ?>" class="col-sm-4">
                                   </div></div>
                   <!--div class="form-group">
			   
			   <?php $nm_f="brand";?>
			   <div class="col-sm-3">
				   <label for="<?php echo $nm_f?>"><?php echo ucwords(str_replace('_',' ',$nm_f))?></label>
				   </div><div class="col-sm-9">
                                       <?php echo form_dropdown('d_'.$nm_f.'[]',$opt_brand,(isset($gd[$nm_f]) ? $gd[$nm_f] : ''),"class=' select2' id='$nm_f'")?>
				  
			   </div>
		   </div-->
		   
		   <!--div class="form-group">
			   
			   <?php $nm_f="sales";?>
			   <div class="col-sm-2">
				   <label for="<?php echo $nm_f?>"><?php echo ucwords(str_replace('_',' ',$nm_f))?></label>
				   </div><div class="col-sm-9">
                                       <?php echo form_dropdown('d_'.$nm_f.'[]',$opt_sales,(isset($gd[$nm_f]) ? $gd[$nm_f] : ''),"class=' select2' id='$nm_f$v'")?>
				  
			   </div>
		   </div-->
		   
                   
    		<div class="form-group"><div class="col-md-3">&nbsp;</div>
                    <div class="col-md-9" id="area-kontak-<?php echo $unique ?>"></div></div>
                   &nbsp;&nbsp;&nbsp;<a href="#area-kontak-<?php echo $unique ?>" onclick="tambahkontak_<?php echo $unique ?>()">+ Tambah Kontak</a>
<script>
    $(document).ready(function(e){
                 $('#sales<?php echo $v?>').css('width','200px').select2({allowClear:true});
                 tambahkontak_<?php echo $unique ?>();
                 
    });
	function tambahkontak_<?php echo $unique ?>(){
            var now=$('.input-kontak-<?php echo $unique ?>').length+1;
		$( "#area-kontak-<?php echo $unique ?>" ).append( '<div class="input-kontak-<?php echo $unique ?> inputankontak" id="input-kontak-<?php echo $unique ?>-'+now+'" style="border-bottom:1px #0044cc dashed;margin-bottom:20px;"></div>');
                $('#input-kontak-<?php echo $unique ?>-'+now).load('<?php echo base_url()?>master_pelanggan/load_kontak/<?php echo $unique ?>',{v:now});
	}
    </script>