Problem with submitting form in select function

Problem with submitting form in select function

Hello,
I have problem with submitting form in select function.
$(function(){
$('#tabs').tabs
({
event: 'click',
cache: false,
ajaxOptions: { cache: false },
select: function(event, ui) { $('#FORM').submit(); while($
('#FORM').submit()==false){ return false; } if($('#FORM').submit()
==true) { return true; } }
});
});
I can submit form, with ID "FORM" when I click on another item. It
works only sometimes, not always.
I load content throught AJAX, and form is inside.
Please can you help me? Thank you!
Best Regards
Evandar
--