<select id='select'>
<option value='+'>+</option>
<option value="-">-</option>
<option value=""></option>
<option value="/">/</option>
</select>
var select = document.getElementById("select").value;//得到+、-、*、/
<input type='text' id='txt1' />
var txt1 = document.getElementById("txt1").value; //得到文本框输入的值