我正试图在“如果条件”为真时发出警报,我正在使用jquery ui警报。但警报不会出现。
这是我的代码:
$("#ctl_apply").on("click", function(event){
if(from_date > to_date)
{
$("#approve_confirm_dialog").dialog({
height:"auto",
width:250,
resizable:false,
buttons:{
"Ok" : function(){
$(this).dialog('close');
}
}
});
return;
}
});
帮助?