Enabled and Disabled Image Button

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ghjk
    Contributor
    • Jan 2008
    • 250

    Enabled and Disabled Image Button

    I'm developing web application using jsp. There I want to disable image button(Edit and Remove)till user click on a record. I wrote disabled command but it didn't work. Can I user java script to this one?This is my code;
    Please help me..
    Code:
    <table width="360" border="0" class="txtnormalblack">
    <tr>
    <td align="right" height="60">
    <input name="submit" type="image" src="http://bytes.com/images/SubmitBtn.jpg">
    <input name="edit" type="image" src="http://bytes.com/images/EditBtn.jpg" disabled="disabled">
    <input name="remove" type="image" src="http://bytes.com/images/RemoveBtn.jpg" disabled="disabled">
    <input name="cancel" type="image" src="http://bytes.com/images/CancelBtn.jpg"  onclick="cancel();">
    </td>
    </tr>
    </table>
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    well, the disabled property disables the default action (which has nothing to do with graphical representation in the first place), but you don’t have any default action defined. further, how should the browser know how a disabled image looks like?

    Comment

    Working...