The name of the image always appears. How to make it disappear or hide after clicking a button

I use the tag <img>inside listviewlist.when, when I hover over this button, the title appears and then disappears. When I click the button showing the modal popup after closing the popup, the title does not disappear. See Attached Image. How can I make the title disappear. I am using listviewlist inside the update panel. ASPX Code:

<td class="text-center">
    <div id="dvTC" runat="server" style="width:18px;" class="mv-action">
        <asp:LinkButton ID="lnkTC" CommandArgument='<%# Eval("TermsAndCondition") %>' 
                                   CommandName="TermsCondition" runat="server">
            <img src="../../../Images/MuslimVoucher/lupe.png" width="14" height="14" 
                 alt="magnifier" title="Terms & Conditions" />
        </asp:LinkButton>
    </div>
</td>

Show server popup

protected void lvGiftVoucher_OnItemCommand(object sender, ListViewCommandEventArgs e) 
{ 
if (e.CommandName == "TermsCondition") 
 this.ModalPopupTC.Show(); 
}

enter image description here

+4
source share
1 answer

Try the following:

<img src="../../../Images/MuslimVoucher/lupe.png" width="14" height="14" 
             alt="magnifier" title="Terms & Conditions"  onmouseover="this.title='';" />

This should solve your problem.

+1
source

All Articles