HTML
<form id="cangpin_sel" style="position:relative;" action="select_pingji.php" method="get" name="formsearch" autocomplete="off" >
<input id="lsm" type="text" name="collection_number" value="" />
<label for="lsm" id="message">021401705350</label>
<input id="select_sub" type="submit" value="点击查询" οnclick="formSubmit()" />
</form>
CSS
#message{font-size: 16px;color:#ccc;position: absolute;top:13px;left:72px;cursor: text;}
js
$(function(){
function $(id){ return document.getElementById(id);}
$("lsm").focus();//自动获取光标方法
$("lsm").oninput = $("lsm").onpropertychange = function () {