- $('.font_datepicker_page').datepicker({
- onSelect: function(dateText, inst) {
- //I need to get X & Y.
- var targetOffset = $(event.target).offset();
- SelectPresentByDay(dateText, targetOffset);
- },
- changeMonth: true,
- altFormat: "yy-MM-dd",
- yearRange: "2002:2012",
- });
- function SelectPresentByDay(date, targetOffset) {
- html = 'text';
- $(".calendar-item-popup .box-cont").html(html);
- var etop=Math.floor(targetOffset.top)+52;
- var eleft=Math.floor(targetOffset.left)+57;
- // show div
- $('.calendar-item-popup').css({top:etop,left:eleft}).fadeIn(190);
- }
in firefox does not take event.
I need to get the coordinates of a mouse click on the date and show the next data window
in firefox does not work http://jsfiddle.net/hea8y/z8auC/