jQTouch on Iphone - jumping to specific DIV after onclick and javascript function

Posted by Guus on Stack Overflow See other posts from Stack Overflow or by Guus
Published on 2010-06-06T15:43:48Z Indexed on 2010/06/06 15:52 UTC
Read the original article Hit count: 222

Filed under:
|
|
|

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>

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery