Answer the question
In order to leave comments, you need to log in
How to connect a button to the search bar?
Please tell me how to connect the button to the search bar.
The button is in a pop-up window, after selecting the parameters in the window, the text of the parameters is entered into the search bar and when you click on the "Apply" button, you need to start the search (when you close the window and press Enter, the search works, it is also necessary when you click on the "Apply"
button search:
<div class="element-search">
<div class="nav-search">
<span class="search-icon"><?php echo $nav_top_search_icon; ?></span>
<input id="text-se" grid_id="<?php echo $grid_id; ?>" title="<?php echo __('Press enter to reset', 'post-grid'); ?>" class="search" type="text" placeholder="<?php echo $nav_top_search_placeholder; ?>" value="<?php echo $keyword; ?>">
</div>
</div>
<button type="button" id="btn-on" class="element-button">Применить</button>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question