Jump to content

jQuery UI using button widget with anchors?


afish674

Recommended Posts

I've applied a class to the jQuery UI button call like so:

$(".UIbutton").button();

When the .UIbutton class is called on what is traditionally a button element, for example on a <input type="submit"> button then it works fine. However if you apply it onto an anchor like:

<a href=\"birthdays.php\" class=\"UIbutton\">Add Another?</a>

Then the button takes the full width of the page rather than just matching the size of the text. Does anyone know why it does this and how to get it to adjust to the text width? Thanks!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...