<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<input type="text" value="123456" id="id1">
<input type="button" value="加密" id="id2" onClick="a()">
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="jquery.md5.js"></script>
<script type="text/javascript">
function a()
{
var bianliang = document.getElementById("id1").value
window.document.getElementById("id1").value = $.md5(bianliang);
}
</script>
</body>
</html>