Hi Klaus, I came back to this problem after fixing other part of my application ;). Finally I figured it out in this way:
var TabSolicitud = $('#SolicitudAguaTabContainer > ul').tabs({ select: function(e, ui) { return false;} } And then, in the onclick event of tag link (<a></a>), I call: (in high level language ;) ) function checkChangesInTab(SelectedTab){ var TabSolicitud = $('#SolicitudAguaTabContainer > ul').tabs(); if(changes){ showmodal_with_buttons{ "yes": blablab "no" : blabla } } } thanks