<html>
<head>
<script src="http://wcetdesigns.com/assets/javascript/jquery.js"></script>
<script src="http://wcetdesigns.com/assets/javascript/jquery/cookie-plugin.js"></script>
<script>
function remember_me
c = $"#check"; //INPUT CHECKBOX
//IF CHECKBOX IS SET, COOKIE WILL BE SET
c.is":checked"
u = $"#username".val; //VALUE OF USERNAME
p = $"#password".val; //VALUE OF PASSWORD
$.cookie"username", u, expires: 3650 ; //SETS IN DAYS (10 YEARS)
$.cookie"password", p, expires: 3650 ; //SETS IN DAYS (10 YEARS)
//NEXT PAGE LOAD, THE USERNAME & PASSWORD WILL BE SHOWN IN THEIR FIELDS
function load_em
u = $.cookie"username"; //"USERNAME" COOKIE
p = $.cookie"password"; //"PASSWORD" COOKIE
$"#username".valu; //FILLS WITH "USERNAME" COOKIE
$"#password".valp; //FILLS WITH "PASSWORD" COOKIE
</script>
</head>
<body onLoad="load_em()">
<input id="username"><br>
<input id="password" type="password"><br>
<input id="check" type="checkbox"> Remember Me<br>
<input onClick="remember_me()" type="button" value="Demo">
</body>
</html>
<head>
<script src="http://wcetdesigns.com/assets/javascript/jquery.js"></script>
<script src="http://wcetdesigns.com/assets/javascript/jquery/cookie-plugin.js"></script>
<script>
function remember_me
c = $"#check"; //INPUT CHECKBOX
//IF CHECKBOX IS SET, COOKIE WILL BE SET
c.is":checked"
u = $"#username".val; //VALUE OF USERNAME
p = $"#password".val; //VALUE OF PASSWORD
$.cookie"username", u, expires: 3650 ; //SETS IN DAYS (10 YEARS)
$.cookie"password", p, expires: 3650 ; //SETS IN DAYS (10 YEARS)
//NEXT PAGE LOAD, THE USERNAME & PASSWORD WILL BE SHOWN IN THEIR FIELDS
function load_em
u = $.cookie"username"; //"USERNAME" COOKIE
p = $.cookie"password"; //"PASSWORD" COOKIE
$"#username".valu; //FILLS WITH "USERNAME" COOKIE
$"#password".valp; //FILLS WITH "PASSWORD" COOKIE
</script>
</head>
<body onLoad="load_em()">
<input id="username"><br>
<input id="password" type="password"><br>
<input id="check" type="checkbox"> Remember Me<br>
<input onClick="remember_me()" type="button" value="Demo">
</body>
</html>
Thanks!
ReplyDeleteThis comment has been removed by the author.
ReplyDelete