Javascript 如何在对话框的弹出窗口上显示标题 $(“#orderdetail1”)。单击(函数(e){ e、 预防默认值(); modalbox(this.href,this.title,550800); });

Javascript 如何在对话框的弹出窗口上显示标题 $(“#orderdetail1”)。单击(函数(e){ e、 预防默认值(); modalbox(this.href,this.title,550800); });,javascript,php,jquery,popup,Javascript,Php,Jquery,Popup,如何使用此代码获取标题。使用此代码打开了一个对话框,但标题没有显示显示您的modalbox()函数如果您使用jquery ui对话框,只需在div中添加一个属性标题,就像此链接中的示例一样,我正在使用achor标记中的标题 <head> <script src="http://code.jquery.com/jquery-1.9.1.js"></script> <script src="http://code.jquery.com/ui/1.1


如何使用此代码获取标题。使用此代码打开了一个对话框,但标题没有显示

显示您的
modalbox()
函数如果您使用jquery ui对话框,只需在div中添加一个属性标题,就像此链接中的示例一样,我正在使用achor标记中的标题
<head>

  <script src="http://code.jquery.com/jquery-1.9.1.js"></script>
  <script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
  <link rel="stylesheet" href="/resources/demos/style.css" />
<script>
$("#orderdetail1<?php echo $OrdersRows['ID'];?>").click(function(e){
                          e.preventDefault();   
                          modalbox(this.href,this.title,550,800);
              });
</script>

</head>
<body>

<div>   <a id="orderdetail1<?php echo $OrdersRows['ID'];?>" href="<?php echo SITE_ADDRESS."ecommerce/orders/OrderListEdit.php"?>?id=<?php echo $OrdersRows['ID'];?>&Task=configration" title="<?php echo $OrdersRows['CompanyName']." - ".$OrdersRows['FirstName']." ".$OrdersRows['Surname']." - ".$OrdersRows['Phone'];?>"> <img src="../../images/icon_settings.png" border="0" title="<?php echo $OrdersRows['CompanyName']." - ".$OrdersRows['FirstName']." ".$OrdersRows['Surname']."'s Order Detail ";?>"/></a></div>
</body>