This version is old school.
        Please find jQuery plugins on npm.
      
    jqExpire
      
      by Aalaap Ghag
      
    
    A jQuery plugin to automatically hide page elements after an 'expiry' date and/or time. Great for pages which have upcoming/ongoing event notices or cut-off times for forms and such.