Update form with UniformJs after any changes on uniform elements

When you make any changes on a form with UniformJs and if you make changes on the form such uncheck a checkbox, you must update your changes on uniform elements.

// make a checkbox (uniform element) checked

// update uniform element

// or you can make update for all uniform elements in the form

How to create a cookie which never expire using Codeigniter

Maximum value of cookie expiration time is 2147483647 (2^31 – 1 = 2147483647 = 2038-01-19 04:14:07) [see: RFC 2616, 14.6 Age]

So the example code snippet:

// substracting current time from last exp. time because CI adds current time to the value
$unexpired_cookie_exp_time = 2147483647 - time();

$cookie = array(
	'name' => 'cookie_name',
	'value' => 'cookie_value',
	'expire'=> $unexpired_cookie_exp_time