here is my jquery code
$('.input').keyup(function(event){
update_text(); // $('div').html('blahblah');
})
.blur(function(event){
$(this).keyup();
if(confirm('Are you sure?')){
// do somthing...
}
});
my problem is when input blur, confirm box should be show after doing update_text();
but update_text() seems run after confirm...
How to make it do update_text() first, then show confirm dialog?