I'm puzzled about the execution order of the following:
$('#home').live('pageinit',function(){
$('#test').hide();
$(function() {
alert('test1');
});
$('#button').click(function(event) {
event.preventDefault();
});
});
$('#home').live('pageshow',function(){
alert('test3');
});
Here is the sequence:
pageinit
gets fired$('#test').hide()
is executed$('#button').click()...
is executedpageshow
andalert('test3')
go offalert('test1')
is fired
Why isn't alert('test1')
executed as number 3?
Thanks