I am testing my website. To test the responsive menu I resize the browser and on certain size the mega menu hides and hamburger menu appears. In hamburger menu there is a search keyword textbox and submit button. But it will not work unless I refresh the page.
But if I directly open the website on mobile and tablet then it will work perfectly.
I have added several codes so that if user resize the browser then page reload code will run but thus not works also everytime.
Any solution for this?