# Toggling search custom button

**URL:** https://meta.discourse.org/t/toggling-search-custom-button/251881
**Category:** Development
**Created:** [January 16, 2023, 7:46am UTC](https://meta.discourse.org/t/toggling-search-custom-button/251881 "2023-01-16T07:46:00Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![misham](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/misham/32/282796_2.png) [@misham](https://meta.discourse.org/u/misham)
#### Post date: [January 16, 2023, 7:46am UTC](https://meta.discourse.org/t/toggling-search-custom-button/251881/1 "2023-01-16T07:46:00Z")

</div>

Hi! Some time ago I asked whether I can insert search in custom place, and received an answer [Header search in custom header - #2 by awesomerobot](https://meta.discourse.org/t/header-search-in-custom-header/249481/2). But there is a question from this: can I toggle visibility of the search by clicking on custom button, or it can be done with jquery only? What is the correct way to do this?
