Reputation: 244
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!!
Upvotes: 2
Views: 294
Reputation: 999
Try $("#submit").click(function (){ alert('Test'); });
. Tap is a kind of click on any dom element iphone.
Upvotes: 1