Tabs select problem

Tabs select problem


I am attempting to check the selected tab id after every select event
and if the id would match my second tab wich happens to contain a
form, I would then perform validation on the form.
I am having some difficulty even getting the select event to fire an
alert let alone be able to check the selected tab id. Can some one
off any suggestions as to why this is not working?
jQuery('#requestForm > ul').tabs({
select: function(ui) {
var selectedtabid = jQuery.data('selected.tabs');
alert(selectedtabid);
// if (selectedtabid = 'myTab') {
// Page_SmartValidate(); }
}
});
Thanks in advance.
Eric