Why happen this with buttons
Hi every:
I'm trying to use Buttons Widget following every as docs said but I'm getting problems when it's showed. The HTML is as follow:
- <div class="buttons">
- <button onclick="$('#form').submit();"><?php echo $button_save; ?></button>
- <button onclick="location = '<?php echo $cancel; ?>';"><?php echo $button_cancel; ?></button
- </div>
And the jQuery code is this:
- $(".buttons button:first").button({
- icons: {
- primary: "ui-icon-check"
- }
- }).next().button({
- icons: {
- primary: "ui-icon-close"
- }
- });
If you see the attached image you will see what I speaking about. Can any help me?