Results 1 to 2 of 2

Thread: Enabling/disabling buttons

  1. #1
    Join Date
    Jun 2006

    Enabling/disabling buttons

    I've a "reply" button. And a sequence of messages arranged in a table.
    Now I want that reply button to be in disabled state till I select one of the messages.(just like in Outlook).

    I want to enable 'reply' onselecting a particular message.

    I've button like this
    <input type="button" value="reply" onclick="submitReply(this.form);">

    And the messages are placed in the following manner:
    <td width="32%" onClick="SHOWMESSAGE")>
    <%=MessageSubject%> </td>

    and thanx in advance

  2. #2
    Join Date
    Dec 2004
    Place the disabled attribute in your reply button HTML to start with -- and, give your reply button a name attribute. Then:

    document.forms["myFormName"].elements["myButtonName"].disabled = false;

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center