我有两个单选按钮: radiobutton1和radiobutton2,当我将鼠标悬停在它上面时,我显示了jquery-ui对话窗口......目前它显示的对话太多正确的......我想要在单选按钮下面显示对话窗口。如第二张图所示。如何在单选按钮下方显示JQuery-UI对话框
$(document).ready(function() {
$('#div_').dialog({
autoOpen: false,
});
$(".radiobutton1").hover(
function(){
$('#div_').dialog({title: "Iamge Left)"});
$('#div_').removeClass("radiobutton1_1 radiobutton2").dialog('open');
var target = $(this);
$("#div_").dialog("wid").position({
my: 'center top',
at: 'center bottom'//,
//of: target
});
},
function(){
$('#div_').dialog('close');
});
$(".radiobutton2").hover(
function(){
$('#div_').dialog({title: "Images Right"});
$('#div_').removeClass("radiobutton1_1 radiobutton2").addClass("radiobutton2").dialog('open');
$("#div_").dialog("wid").position({
my: 'center top',
at: 'center bottom'//,
//of: target
});
},
function(){
$('#div_').dialog('close');
});
});
http://stackoverflow.com/questions/744554/jquery-ui-dialog-positioning – Evan