<script type="text/javascript"src="jquerycookies.js"></script><script type="text/javascript">
var COOKIE_NAME = 'adqs';
var options = { path: '/', expires: 10 };
f = $("#update").val();
function setCookie(){
$.cookie(COOKIE_NAME, 'testvmxzcmv', options);
return false;
}
</script>
输入时如何设置cookie值
<input type="text"id="update"onClick="javascript:setCookie()" />