tags:

views:

365

answers:

1

I have an button whose type is image i want to disable button till some action following is the html tag

How to disable this button?

+3  A: 

You can add a click that returns false:

$('#myButton').click(function() { return false; });

You might want to add a message that explains why it's disabled, and possibly some CSS to make it look disabled as well.

Greg