else { echo"
<td style='color:green' onclick=alert '('You have already send a request for buying this ticket ')'><a href='sell.php?buy=" . $b_id . "&usr=" . $buyer_id . "&sell=" . $s_id . "'> Resend Your detail </a>
</td>"; echo"
</tr>";
请帮忙将 javascript 与内联样式表绑定(bind)。任何帮助,将不胜感激。
最佳答案
在你的任务中
<td style='color:green' onclick=\"javascript:alert('You have already send a request for buying this ticket')\"><a href='sell.php?buy=" . $b_id . "&usr=" . $buyer_id . "&sell=" . $s_id . "'> Resend Your detail </a>
顺便说一句,你的引用风格不是最佳的
关于javascript - 我的 anchor 标记没有采用 javascript 函数和 php 中的内联样式表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27835488/