title: show form value in alert after click on button
body: <p>I am very new on HTML. I just trying to accept form value and want to show this value<br>
  in Alert.  I try following code but it didn't help me...<br>
  I know this is very easy question but i am newbie on HTML,JavaScript. I search but didn't find relative to my requirement....
  Javascript function....   </p>
  
  <pre><code>  function updateTxt(field1,field2)
    {  
      var field1 = document.getElementById(field1);  
      var field2 = document.getElementById(field2);  
      alert(field1,field2);
  
      }  
  </code></pre>
  
  <p>HTML form    </p>
  
  <pre><code>&lt;input name="textfield" type="text" id="textfield" value="Search by keyword" class="search_input" &gt;
  &lt;select name="select" id="select" class="input_list" &gt;
            &lt;option&gt;Search jobs by category&lt;/option&gt;
            &lt;option&gt;Business Sales Leadership Development Program&lt;/option&gt;
            &lt;option&gt;Business Sales Solutions&lt;/option&gt;
            &lt;option&gt;CTO&lt;/option&gt;
            &lt;option&gt;Call Center&lt;/option&gt;&lt;/select&gt;
   &lt;input name="button" type="button" class="btn" value="Go" onClick="updateTxt(select,textfield)"&gt;
  </code></pre>
  
  <p>Please give me hint or direct me where i wrong...<br>
  Thanks in Advance</p>