senchalabs/jQTouch — Issue #298: JQTouch and Tap function
Author: Orezhon
Created: 2011-10-14 08:53:05+00:00
State: open

I have a problem with the tap function, I have 2 files:

I have a form in the index.php file that I submit with this function:

$('#login').submit( function(e){
$('#home').append('...div...loading...');
$("#login").attr('action', 'login.php');
});

Function works well, and calls the loading div In the second file (login.php), when I click back and go to the first page, I hide the loading div with this function:

$('#back').tap( function(e){
$('#loading').hide();
});

and it works, but only 1 time because if I submit the form again, the loading is correct, but the "back button" no longer hides the loading.

It 'a problem of the tap function (which works only once)?