我有一個按鈕,在它的點擊中,我將調用一個函數,它將打開一個帶有OK和CANCEL按鈕的彈出窗口。並點擊這些按鈕我打開div的第一個函數應分別返回true或false。以下是我想要的。在jquery中需要幫助回電
<a id="button"> click me </a>
$("#button").click(function(e){
if(openPopUp()){
}
});
function openPopUp()
{
// this will opean a popUpwith OK n Cancel and onclick of Ok this function should return true and false if its Cancel
}
顯示整個代碼或進行小提琴。 –