Click here to Skip to main content
15,945,876 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi need to display a popup view while hovering an action link using ajax. but i cant display popup.. i kindly request u clear my issue.. thanks.. following are my codes..

<div class="hover">
<b style="margin-left: -8px; font-size: large;color: #2B9CE2;">
@Ajax.ActionLink(@item.bName, "Businessdetails", "NewSearch", new { id = item.bID }, null
<div id="popup" style="display:none; width: 100px; height:100px;">

<script type="text/javascript">
$(document).ready(function () {
$(".hover").each(function () {
$(this).mouseover(function () {
autoOpen: true,
title: 'Title',
width: '100px',
height: '100px',
modal: true

$(this).mouseout(function () {
autoOpen: false,


Partial View:

<div id="Display">
<div id="map_container"></div><br />
<p style="display:none" id="businessid">@item.bID</p>

1 solution

I have the feeling that you are not using the JQuery dialog correctly, by default it takes over the screen so the "mouseout" will not occur. See a basic example of what you are trying to do here:[^]

If you want to close a dialog yourself, you need to call .dialog( "close" );
Share this answer
Member 11367931 11-Aug-15 3:28am    
thanks new to MVC

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