I have a problem with my web app. I use Jqtouch to develop it but I don't know how to detect when a button is tapped. This is part of my code and it doesn't work.
HTML:
<ul class="edit rounded" id="campi" name="campi">
<li><input type="text" name="name" placeholder="Username" id="some_name" autocorrect="off" autocomplete="off" /></li>
<li><input type="password" name="name" placeholder="Password" id="some_name" autocorrect="off" autocomplete="off" /></li>
</ul>
<a id="submit" name="submit" class="submit">Accedi</a>
Jquery code ( not working ):
$("#submit").tap( function() {
alert('Test');
});
Please help me fix. Thanks!!
Try $("#submit").click(function (){ alert('Test'); });
. Tap is a kind of click on any dom element iphone.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.