How do I get the current date in JavaScript? - Stack Overflow Also Note: This is still less bloated than moment js While moment js is nice, imo, it has too many secular methods, which require learning moment as if it were a language Mine here uses the same common format as PHP: date Quick Links Date format min js 5 08 KB; dateFormat min js 4 16 KB; Flavor 1 new Date() format(String) My Personal Fav I
Check Uncheck checkbox with JavaScript - Stack Overflow fyi: just tested this onclick="document getElementById('dmsmh_chk') checked = !document getElementById('dmsmh_chk') checked;" this behaves like a jQuery toggle in plain JS (checks the box when it is unchecked or removes the check when it is checked) –
javascript - How to delete a cookie? - Stack Overflow To delete a cookie I set it again with an empty value and expiring in 1 second In details, I always use one of the following flavours (I tend to prefer the second one):