对js一知半解,求大神
<form id="form1" name="form1" method="post">
  <label for="daan"><p>请填入您的答案:</p></label>
  <p>
    <input type="text" name="daan" id="daan"/>
  </p>
  <input type="submit" name="submit" id="submit" value="提交"  disabled="disabled" />
</form>

解决方案 »

  1.   

    daan 加个onchange 事件吧
      

  2.   

    <form id="form1" name="form1" method="post">
        <label for="daan"><p>请填入您的答案:</p></label>
        <p>
            <input type="text" name="daan" id="daan"/>
        </p>
        <input type="submit" name="submit" id="submit" value="提交"  disabled="disabled" />
    </form>
    <script type="text/javascript">
    document.getElementById("daan").onblur=function(){
        document.getElementById("submit").disabled=this.value=="";
    }
    </script>