title: how to submit text in a field without a submit button
body: <p>Im searching and trying for some hours now and all i can find is how to submit a text that has a button for submiting, but i need to submit a text field that doesnt have a submit button, i cant post the link of the page because it needs login. But here is the code of the text field:</p>
  
  <pre><code>    &lt;div class="items box module"&gt;
                  &lt;div class="title"&gt;
                      &lt;input type="text" id="filter" placeholder="Type an item name or type and press enter!" /&gt;
  </code></pre>
  
  <p>The only way of sending it normally is pressing enter,i already searched for how to simulate a enter press but all i found was how to run something when you press enter. The only thing i managed to do so far is to put some text on it using:</p>
  
  <pre><code>    document.getElementById("filter").value = "test";
  </code></pre>
  
  <p>I need a way to select that field like if i had clicked on it and press enter to send it. Or other way to do that using code,already tried .click(); to select and .submit() to send but it wont work.</p>
  
  <p>Im new to tampermonkey and java so sorry if im missing something obvious or asking something stupid.</p>
  
  <p>Any help is welcome, Thanks very much</p>