Dynamic_textbox_jquery

Menambah dan Menghapus Textbox Dinamis

HTML

	<div id="kmp"></div>
	<input type="button" class="btn btn-xs btn-primary" value="Add" id="append"></input>

Jquery

<script type="text/javascript">
	$(document).ready(function(){
		$("#append").on('click',function(){
			$("#kmp").append('<div><input type="text"></input><a href="#" class="hapus">Remove</a></div><br>')
		})
    
  		var kmp=$("#kmp");  

		$(kmp).on('click','.hapus',function(e){
    	e.preventDefault();
		jQuery(this).parent().remove();
    	return false;
		})
	})
</script>

Aditya Suryadi

Aditya Suryadi
just ordinary people

Dynamic Textbox Menggunkan Vue Js

{% highlight html %} Add {{ $index+1 }} remove row {% ...… Continue reading

Backup Db Menggunakan Php Dan Mysql Di Windows

Published on January 18, 2017

merubah string jadi variabel di PHP

Published on January 13, 2017