Created
November 30, 2016 04:34
-
-
Save agentready/2f7707221e0b9a7da9aab8e37f9a8935 to your computer and use it in GitHub Desktop.
hayat sir
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>jquery</title> | |
<script src="http://cdn.dev/jq/jquery.min.js"></script> | |
</head> | |
<body> | |
<form id="myform"> | |
</form> | |
<script type="text/javascript"> | |
var data = [{"id":"52","name":"hayat","email":"hayat.hasan@gmail","password":"123","reg_date":"29-11-16 09:22:22","businesstype":"","phone":"01710","address":"224 B","ward":"ba","village":"bhh","upozilla":"bahhff","district":"dhffvh"}]; | |
$.each(data, function(i, f) { | |
$.each(f, function(id, val){ | |
var toin = '<input type="text" id="'+id+'" value="'+val+'">'; | |
$('#myform').append(toin); | |
}); | |
}); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment