-1

I need to hide some buttons, show others then hyperlink to a new web page using a button's onclick event.

I have the hidden/visible code working in a jquery function but don't know (and have tried to find out) how to add the hyperlink call to the function.

Do I have to add a hidden button and use ".click" or is there a better way?

4

1 回答 1

1

在您在 onclick 事件中添加的此功能中,您想将用户重定向到另一个 url?如果我理解正确,你想在你的函数中使用的可能是:

window.location.href = "http://thesite.com";
于 2012-04-07T08:38:38.043 回答