$("#myHref").on('click', function() { document.getElementById(".myDiv").style.flexGrow = "5"; window.location = "http://www.google.com"; });`