Iphone 上的 jQTouch - 在 onclick 和 javascript 函数后跳转到特定 DIV

发布于 2024-09-04 06:09:12 字数 591 浏览 3 评论 0原文

我刚刚开始使用jQTouch。 在 #contact 中,我有一个调用 javascript 函数 sendEmail() 的按钮,

如何在 javascript 函数中跳转到/显示 div #statusDiv发送电子邮件后?

    function sendEmail() {
        // sending email

        // --> how to jump to DIV called statusDiv
    }

<div id="home" class="current">    
</div>

<div id="contact"  >
    <ul class="rounded">
      <li ><a id="emailButton" onclick="sendEmail()">Stuur email</a></li>
    </ul>
</div>

<div id="statusDiv">
</div>

I am just starting to use jQTouch.
In #contact I have a button that calls javascript function sendEmail()

How can I jump to/show the div #statusDiv in the javascript function after sending the email?

    function sendEmail() {
        // sending email

        // --> how to jump to DIV called statusDiv
    }

<div id="home" class="current">    
</div>

<div id="contact"  >
    <ul class="rounded">
      <li ><a id="emailButton" onclick="sendEmail()">Stuur email</a></li>
    </ul>
</div>

<div id="statusDiv">
</div>

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

坐在坟头思考人生 2024-09-11 06:09:12

使用 jQtouch 对象中的 goTo 函数。像这样的东西:

jQT.goTo('#statusDiv')

Use the goTo function from the jQtouch object. Something like:

jQT.goTo('#statusDiv')
时光磨忆 2024-09-11 06:09:12

在最新版本中,您可以使用

jQT.goTo('#statusDiv',"slideleft");

第一个参数是部门名称,第二个参数是动画。

In latest version you can use

jQT.goTo('#statusDiv',"slideleft");

first argument is division name and second one is animation.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文