Reputation: 119
Following is the requirement :
Following is the code:
<td style="text-align:center;"><input
onclick="clearMessage()"
type="image"
src="/images/pen_edit_thick.png"
class="imgEditPen"
title="<bean:message key="button.tooltip.edit"/>"></td>
<td style="text-align:center;"><input
onclick="clearMessage();"
type="image"
src="/images/icon_delete.gif"
class="imgEditPen"
title="<bean:message key="button.tooltip.remove"/>"></td>
Tried following methods : Using button selector with disabled property ($(':button').prop('disabled', true); // Disable all the buttons .But that doesnt seem to work. Kindly help.
Upvotes: 0
Views: 641
Reputation: 680
From the code I see, none of your input is button typed.
Try
$(":image").attr("disabled", "disabled")
or
$(":image").prop("disabled", true)
It will select image typed input and buttons
Upvotes: 1