title: How can I have a HTML form submit by just hitting Enter (no submit button)?
body: <p>I do not want to have a submit button as I want people to be able to enter the form field and then to search all they have to do is press the enter button.</p>
  
  <p>Here is my code:</p>
  
  <p>HTML</p>
  
  <pre><code>&lt;div class="search"&gt;
  &lt;div class="search1" form action="weezyresults.php" method="post"&gt;
  &lt;input type="text" name="search"  size="30" value="" 
  style="background-color:white; border: 
  solid 1px #ffffff; height: 30px; font-size:19px; 
  font-family: HelveticaNeue-Light; font-weight: 1;
  vertical-align:9px;color:#151515" 
  onfocus="if(this.value == ''){this.value = 
  '';this.style.color='#363D42'}" /&gt;
  
  &lt;/div&gt;
  &lt;div class="enter"&gt;&lt;input type="image" src="but.jpg" alt="Submit"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>CSS</p>
  
  <pre><code>.search {
  background: #FFFFFF;
  border: 1px solid;
  color: #BDBDBD;
  height: 35px;
  width: 270px;
  }
  
  
  .search1 {
  margin-top: 3px;
  float: left;
  }
  
  .enter {
  display:none;
  }
  </code></pre>
  
  <p>Thanks!</p>
  
  <p>James</p>