<form name=formName>
...
<input type="button" name="Submit1" value="连接" onclick="formName.Submit2.disabled=false;formName.Submit3.disabled=false;">
<input type="submit" name="Submit2" disabled value="查询">
<input type="submit" name="Submit3" disabled value="断开">
</form>如果“连接”类型一定要是submit,就需要这样写:
formName.Submit2.disabled=false;formName.Submit3.disabled=false;return false

解决方案 »

  1.   

    SORRY,看掉了你的一个条件,完整的代码:
    <form name=formName>
    ...
    <input type="button" name="Submit1" value="连接" onclick="formName.Submit2.disabled=false;formName.Submit3.disabled=false;formName.submit1.disabled=true">
    <input type="submit" name="Submit2" disabled value="查询">
    <input type="submit" name="Submit3" disabled value="断开">
    </form>
      

  2.   

    我晕!笔误,正确的,完整的应该是:<form name=formName>
    ...
    <input type="button" name="Submit1" value="连接" onclick="formName.Submit2.disabled=false;formName.Submit3.disabled=false;formName.Submit1.disabled=true">
    <input type="submit" name="Submit2" disabled value="查询">
    <input type="submit" name="Submit3" disabled value="断开">
    </form>如果“连接”类型是submit,还是在ONCLICK的最后(一定要在最后)加上“return false”!