0

我在我的项目中添加了 alertify 以增强一些视觉效果并覆盖浏览器标准提示符上的时间,但是代码在 Firefox 上不起作用它在 chrome 上起作用,请参见下文:

         xFunction = function() {
         event.preventDefault();
      alertify.confirm("Are you sure? This cant be undone!!?", function(e) {
      if (e) { 
     alertify.success("Asset Discontinued Successfully!!");
      $('#conf').click()  } else {
alertify.success("Nothing was Discontinued!!");
    }
    });
    }

对于 html

  <form action='Allocated.php' method='post' name='disc' id='conf' >
<input type='submit' name='disc' value='Discontinue Asset' formnovalidate='formnovalidate' id='conf' onclick='return xFunction() ;' />
4

0 回答 0