Dear Tony Partner,
I`m add some event on keypress at this script:
Add some ajax request after nextRow fade in, to save video timing in separate SQL table, like this
Code:
$.ajax({ url: check_quota_url, . . .
and add a keypress event to make this event happen by + or - key pressed.
Code:
$(document).keypress(function (e)
{
var key = e.which;
if(key == 61 || key == 43 ) // the enter key code
{
$('#answer645263X5X10146Val1-Like').click();
return false;
}
if(key == 95 || key == 45) // the enter key code
{
$('#answer645263X5X10146Val1-Dis').click();
return false;
}
}
);
So, ajax request is done fine, each time when + or - key pressed, but
Code:
thisRow.fadeOut(300, function(e) { nextRow.fadeIn(300); });
works only once. I know i should do something with
, and
in radio ids, but i can`t figure out correct solution. Can you please help with this?