Tabs + jQueryUI button via ajax.

Tabs + jQueryUI button via ajax.

HI!

I'm using tabs on a web site and load some content via ajax. I want to use JqueryUI radiobuttons there. But there's a problem of styling.

That's what i have:
  1. $tabs.tabs('add', 'order.php?id='+num, "Order #"+num);
and order php file for example:
  1. $('#gotorderby".$orderid."').buttonset();
  2. ....[some code here]...
  3. <div id='gotorderby".$orderid."' class='bset'>
  4. <input type='radio' id='radio6' name='gotby".$orderid."' checked='checked' /><label for='radio6' style='width:187px;'>Cart</label>
  5. <input type='radio' id='radio7' name='gotby".$orderid."' /><label for='radio7' style='width:187.5px;'>Phone</label>
  6. </div>
When i add one tab it's all ok, but when i add second all my radiobuttons get additional <span> tag inside, and height increaes. it aslo increases on all radiobuttons on a previuos tabs.
After some added tabs result is:
  1. <div class="bset ui-buttonset" id="delivery2">
  2. <input type="radio" checked="checked" name="deliv2" id="radio1" class="ui-helper-hidden-accessible">
  3. <label style="width: 187px;" for="radio1" class="ui-state-active ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" aria-pressed="true" role="button" aria-disabled="false">
  4. <span class="ui-button-text">
  5. <span class="ui-button-text">
  6. <span class="ui-button-text">
  7. <span class="ui-button-text">
  8. Доставка</span></span></span></span>
  9. </label>
  10. <input type="radio" name="deliv2" id="radio2" class="ui-helper-hidden-accessible">
  11. <label style="width: 187.5px;" for="radio2" aria-pressed="false" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" role="button" aria-disabled="false">
  12. <span class="ui-button-text">
  13. <span class="ui-button-text">
  14. <span class="ui-button-text">
  15. <span class="ui-button-text">Самовывоз
  16. </span></span></span></span>
  17. </label>
  18. </div>
I treid to solve the problems, but still no result. Can anyone figure what's wrong?
I've attached a screenshot to show how does it looks.