How to perform two different action by using two ID's of textbox using one same button
<p>In below textbox i have two different id's (i.e. 's' and 'primary-search-input') and only one button.</p>

<p>The first id(i.e. s) is a plugin id for performing search-suggestion work whenever the user enter any keyword he will get related suggestion.
And second id(i.e. primary-search-input) for getting the search keyword result when the user click on a button.</p>

<p>In the above case both id's has different different tasks.
when i put id='s' first and id='primary-search-input'second like below it will only perform first id action(i.e. get suggestion) and when i put id='primary-search-input' first and id='s'as a second position then it will only perform first id action(i.e. get keyword result on button click).</p>

<p>My query is that how i can perform both the action at the same time like when user type any text into textbox he will get suggestion and also same time he click on button get keyword result on button click. </p>

<pre><code>&lt;input name="s"  id="s" id="primary-search-input"  class="wide input" type="search" value="&lt;?php if(isset($_GET['s']) &amp;&amp; !isset($_GET['product'])) { echo sanitize_text_field(stripslashes(trim($_GET['s']))); } ?&gt;" placeholder="&lt;?php _e('I am shopping for...', 'framework')?&gt;" /&gt;

&lt;div id="primary-search-btn" class="medium primary btn"&gt;&lt;a href="#"&gt;&lt;i class="icon-search"&gt;&lt;/i&gt;&lt;/a&gt;&lt;/div&gt;
</code></pre>