Title: search button
Last modified: August 22, 2016

---

# search button

 *  Resolved [mastaliyev](https://wordpress.org/support/users/mastaliyev/)
 * (@mastaliyev)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/search-button-9/)
 * hi again!
    i’ve one problem with search button. when you open page with plugin,
   usually on first entry pages opens with button under Editbox. how can i fix this.
   or alternatively , how can i give button click functionality to editbox (by enter
   event) ? for example you entered text on EditBox and hit Enter on keyboard so
   system start searching (as you hit Search button).
 * [http://topmedia.az/?p=2159](http://topmedia.az/?p=2159)
 * [https://wordpress.org/plugins/custom-database-tables/](https://wordpress.org/plugins/custom-database-tables/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [ka2](https://wordpress.org/support/users/ka2/)
 * (@ka2)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/search-button-9/#post-5343449)
 * It’s good work inquiries again!
 * I do not know a legitimate answer to your question, but will answer hasten.
 * Instead of the click event of the search button, if you want to use a key press
   event, please add the following JavaScript.
 *     ```
       $('input[name="search_key"]').keypress(function(event) {
         if (event.which == 13) {
           event.preventDefault();
           $('.controller-form input[name="mode"]').val('list');
           $('.controller-form input[name="action"]').val('search');
           $('.controller-form').submit();
         }
       });
       ```
   
 * Search process is done by submitting after added each “search” to “action”, “
   list” to “mode” of the hidden-forms in form that class name is “.controller-form”.

Viewing 1 replies (of 1 total)

The topic ‘search button’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/custom-database-tables_e4e2e2.svg)
 * [Custom DataBase Tables](https://wordpress.org/plugins/custom-database-tables/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-database-tables/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-database-tables/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-database-tables/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-database-tables/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-database-tables/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [ka2](https://wordpress.org/support/users/ka2/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/search-button-9/#post-5343449)
 * Status: resolved