如何创建带有确认警报框的struts jquery链接?
我想创建一个链接,点击后将显示第一个确认对话框 我试过了,但不管用。 你能帮我吗如何创建带有确认警报框的struts jquery链接?,jquery,struts2,hyperlink,struts,alert,Jquery,Struts2,Hyperlink,Struts,Alert,我想创建一个链接,点击后将显示第一个确认对话框 我试过了,但不管用。 你能帮我吗 sj:a id="ajaxlink" href="%{'#'}" indicator="indicator" onClickTopics="before" button="true" > click me </sj:a> $.subscribe('before', function(event,data) {
sj:a
id="ajaxlink"
href="%{'#'}"
indicator="indicator"
onClickTopics="before"
button="true"
>
click me
</sj:a>
$.subscribe('before', function(event,data) {
//do your condition check here
if(condition){
window.location="yourLocation";
}
});