Created
November 30, 2016 04:47
-
-
Save agentready/ebe2b0fb893f87a278e760a1f372acae to your computer and use it in GitHub Desktop.
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"> | |
<input type="text" name="" id="id"> | |
<input type="text" name="" id="email"> | |
<input type="text" name="" id="reg_date"> | |
<input type="submit" value="Save This"> | |
</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) { | |
$('#myform #id').val(f.id); | |
$('#myform #email').val(f.email); | |
$('#myform #reg_date').val(f.reg_date); | |
}); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment