Click here to Skip to main content
15,896,912 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I am working on ASP.NET MVC4.0.
In my view(cshtml) I have a anchor tag. when i mouse over on anchor tag i want to display a DIV conent.

HTML
<a href="#"  id="lnktest">Test</a>


My Div content

HTML
<div id="Ratinggrd">
    <table cellpadding="0" cellspacing="0">
        <colgroup>
            <col width="10%" />
            <col width="10%" />
        </colgroup>
        <tbody>
            @if (Model != null)
            {
                for (int count = 0; count < Model.Count; count++)
                { 
                <tr class="@(count % 2 == 0 ? "even" : "odd")" >
                    <td class="even">
                        <span>@Model[count].ABC</span>
                    </td>
                    <td class="odd">
                        <span>@Model[count].XYZ</span>
                    </td>
                </tr>
                }
            }
                   </tbody>
    </table>
</div>


Please Help!!
Posted

1 solution

you can set Title dynamically using JQUERY
http://jqueryui.com/tooltip/#custom-content[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900