在日历控件对小鼠的Jquery弹出 [英] Jquery popup on mouse over of calendar control

查看:130
本文介绍了在日历控件对小鼠的Jquery弹出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用ASP.NET的日历控件。我需要的时候我将鼠标悬停在日历控件特定日期以显示弹出式窗体。此弹出应从数据库显示数据。

I am using the Calendar control of ASP.NET. I need to display a pop-up form when I hover over a particular date in the Calendar control. This pop-up should display data from database.

有没有人有办法解决这个?

Does anyone have a solution for this?

推荐答案

您应该有一个空div:

You should have an empty div:

<div id="popup"></div>

那么事件绑定到日历元素:

then bind an event to the calendar elements:

('li.calendar').hover(function(){
   //make an ajax call and populate the popup div with the data
   //easiest method is jquery.load(), but if you need more control use jquery.ajax();
   $("popup").load('path/to/page.asp',data,function(){
       $("popup").show();
   });


});

jquery.load()并的 jquery.ajax()

这篇关于在日历控件对小鼠的Jquery弹出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆