Title: Problem with search button
Last modified: April 16, 2018

---

# Problem with search button

 *  Resolved [wcreate](https://wordpress.org/support/users/wcreate/)
 * (@wcreate)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/problem-with-search-button-2/)
 * Hi
 * If I perform a search and I push the search button, you can see it does the search
   2 times. I think it’s because of an onmouseout event that is called if you leave
   the input-field.
 * Is it possible to disable the onmouseout-event? Or is this because of something
   else?
    Many thanks in advance!
 * Kind Regards
    Wim
    -  This topic was modified 8 years, 2 months ago by [wcreate](https://wordpress.org/support/users/wcreate/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fproblem-with-search-button-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Plugin Contributor [Richard Archambault](https://wordpress.org/support/users/richardmtl/)
 * (@richardmtl)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/problem-with-search-button-2/#post-10190533)
 * Hi!
 * That’s odd. Does the same thing happen if you switch to another theme temporarily?
   For example, try the default Twenty Sixteen theme to see. Let me know how it 
   goes!
 *  Thread Starter [wcreate](https://wordpress.org/support/users/wcreate/)
 * (@wcreate)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/problem-with-search-button-2/#post-10193458)
 * Hello Ricard
 * Many thanks for your reply.
 * Yes it does the same thing. Please keep in mind that I had to manually add the
   search button in the job-filters.php (through a child theme) because the search
   button isn’t in the job-filters.php by default.
 *     ```
       <div class="search_submit">
       <input type="submit" name="submit" value="Search">
       </div>
       ```
   
 * Kind Regards
    Wim
 *  Plugin Contributor [Richard Archambault](https://wordpress.org/support/users/richardmtl/)
 * (@richardmtl)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/problem-with-search-button-2/#post-10195367)
 * Can you post the full content of job-filters.php on [https://pastebin.com/](https://pastebin.com/)
   or somewhere similar, and then give me the link to it? I presume there won’t 
   be any private or proprietary information in the file but if there is, make sure
   to remove it before posting it. Thanks!
 *  Thread Starter [wcreate](https://wordpress.org/support/users/wcreate/)
 * (@wcreate)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/problem-with-search-button-2/#post-10195612)
 * Hi Richard
 * Here you are: [https://pastebin.com/tT1rx8M9](https://pastebin.com/tT1rx8M9)
 * Many thanks for looking further into it.
 * Kind Regards
    Wim
 *  Plugin Contributor [Richard Archambault](https://wordpress.org/support/users/richardmtl/)
 * (@richardmtl)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/problem-with-search-button-2/#post-10202292)
 * Hi! Thanks for the file. I’ve passed this along to the developers because I don’t
   know what’s happening. For my own internal reference, it’s issue #2075. I’ll 
   get back to you when I hear from them!
 *  Plugin Contributor [Richard Archambault](https://wordpress.org/support/users/richardmtl/)
 * (@richardmtl)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/problem-with-search-button-2/#post-10203239)
 * Hi! It looks like the problem is the Submit button you added:
 *     ```
       <div class="search_submit">
            <input type="submit" name="submit" value="Search">
       </div>
       ```
   
 * WPJM will search automatically via javascript when people enter terms, without
   the need for a Search button. Explanation from the developer:
 * > WPJM’s filter form tries to be Javascript based. It listens for the return 
   > key or for field changes and then automatically submits the form. It can prevent
   > traditional (page reload) form submission on Enter/Return using the build-in
   > template because there is no Submit button. When a person hits Enter/Return
   > when there is the submit button (from within a text field), JS fires the update
   > and then the browser submits the form in the traditional way. If they just 
   > click Submit (without having changed the fields), you’ll see it just submit
   > the form traditionally (without using JS).
 * So, our suggestion is to remove the button.
 *  Thread Starter [wcreate](https://wordpress.org/support/users/wcreate/)
 * (@wcreate)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/problem-with-search-button-2/#post-10206633)
 * Thanks for the reply Richard.
 * Just to be sure. It isn’t possible to remove the onchange-event filter?
 * Kind regards
    Wim
 *  Plugin Contributor [Richard Archambault](https://wordpress.org/support/users/richardmtl/)
 * (@richardmtl)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/problem-with-search-button-2/#post-10209689)
 * Hi! You’d have to edit the plugin files / javascript files for that. There’s 
   no filter or anything that allows you to remove it, no.

Viewing 8 replies - 1 through 8 (of 8 total)

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

 * ![](https://ps.w.org/wp-job-manager/assets/icon-256x256.gif?rev=2975257)
 * [WP Job Manager](https://wordpress.org/plugins/wp-job-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-job-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-job-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-job-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-job-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-job-manager/reviews/)

## Tags

 * [problem](https://wordpress.org/support/topic-tag/problem/)

 * 8 replies
 * 2 participants
 * Last reply from: [Richard Archambault](https://wordpress.org/support/users/richardmtl/)
 * Last activity: [8 years, 1 month ago](https://wordpress.org/support/topic/problem-with-search-button-2/#post-10209689)
 * Status: resolved