jQuery 2.1.3, HTML, CSS, JavaScript
No-Library (pure JS), HTML, CSS, JavaScript
This fiddle will be helpful when some one want to have callback function just after toggleClass function
jQuery 1.7.2, HTML, CSS, JavaScript
jQuery 1.8.3, HTML, CSS, JavaScript