I have an image for adding files(is also add button) and I want it to be disabled(or say make it grey) when they are no files.and when they are files to be added it should enable the user to add files.
It's better to use two separate images for active and inactive buttons.
I dont understand what you need, but Ill give it a go :)
An image for adding files:
<input name="AddFile" type="image" src="image.gif" disabled="True">
Use a Javascript function to active the image-button:
function enableField()
{
document.form1.AddFile.disabled=false;
}
精彩评论