  <div class="form-group">
			   
			   <?php
                           
			   echo form_hidden("id_kontak[$unique][]",'');
                           $nm_f="d_kontak[$unique][]";?>
			   <div class="col-sm-2">
				   <label for="<?php echo $nm_f?>">Nama Kontak</label><label>
                                       <?php if($v>1){?>
                                       &nbsp;&nbsp;<a href="#" onClick="hapuskontak(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 $a= (isset($gd[$nm_f]) ? $gd[$nm_f] : '') ?>" class="col-sm-4">
			   </div>
		   </div>
		   <div class="form-group">
			   
			   <?php $nm_f="telp1";?>
			   <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_input('d_'.$nm_f."[$unique][]",(isset($gd[$nm_f]) ? $gd[$nm_f] : ''),"class='col-sm-4 ' id='d_".$nm_f."[$unique][]'")?>
				  
			   </div>
		   </div>
		   <div class="form-group">
			   
			   <?php $nm_f="telp2";?>
			   <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_input('d_'.$nm_f."[$unique][]",(isset($gd[$nm_f]) ? $gd[$nm_f] : ''),"class='col-sm-4 ' id='$nm_f'")?>
				  
			   </div>
		   </div>
		   <div class="form-group">
			   
			   <?php $nm_f="fax";?>
			   <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_input('d_'.$nm_f."[$unique][]",(isset($gd[$nm_f]) ? $gd[$nm_f] : ''),"class='col-sm-4 ' id='$nm_f'")?>
				  
			   </div>
		   </div>
		   <div class="form-group">
			   
			   <?php $nm_f="email";?>
			   <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_input('d_'.$nm_f."[$unique][]",(isset($gd[$nm_f]) ? $gd[$nm_f] : ''),"class='col-sm-4 ' id='$nm_f'")?>
				  
			   </div>
		   </div>
		   <!--div class="form-group">
			   
			   <?php $nm_f="tag[$unique][]";?>
			   <div class="col-sm-3">
				   <label for="<?php echo $nm_f?>">Tag</label>
				   </div><div class="col-sm-9">
				   <input type="text" name="<?php echo $nm_f?>"  id="<?php echo $nm_f?>" value="<?php echo $a= (isset($gd[$nm_f]) ? $gd[$nm_f] : '') ?>" class="col-sm-4 ">
			   </div>
		   </div-->
		   <div class="form-group" >
			   
			   <?php $nm_f="catatan";?>
			   <div class="col-sm-2">
				   <label for="<?php echo $nm_f?>">Note</label>
				   </div><div class="col-sm-9">
                                       <?php echo form_textarea('d_'.$nm_f."[$unique][]",(isset($gd[$nm_f]) ? $gd[$nm_f] : ''),'class=""');?>
				   <!--input type="text" name="<?php echo $nm_f?>"  id="<?php echo $nm_f?>" value="<?php echo $a= (isset($gd[$nm_f]) ? $gd[$nm_f] : '') ?>" class="col-sm-4 "-->
			   </div>
                   </div>
                   
                   <script>
                       $("#form").validate(); //sets up the validator
$("input[id*='<?php echo "d_kontak[$unique][]" ?>']").rules("add", "required");
$("input[id*='<?php echo "d_telp1[$unique][]" ?>']").rules("add", "required");
                       </script>