views:

2114

answers:

5

I need to have rounded corners in buttons (input type submit), but I haven't found any JavaScript library that would do that. Currently I use http://blue-anvil.com/jquerycurvycorners/test.html to round other elements, but I doesn't round input buttons or li-elements. I prefer jQuery plugins, because I use jQuery to all other plugins and components in my app. So is there any way to round buttons in IE ?

+1  A: 

You could fake it by making a rounded box with a link that submits the form. Of course, this wouldn't work with JavaScript disabled, so you'd have to watch out for that. Also, you could just use a background image that has rounded corners.

musicfreak
A: 

I use the following in my personal website (you can get the link from my profile) and it seems to work well:

Alan Haggai Alavi
Only problem is that it doesn't work with latest jQuery version, it requires older version...
Oh I see. I have not updated jQuery for some time now.
Alan Haggai Alavi
+1  A: 

why not make a button using css? Essentially a linked graphic? One of the sites I work on we have a method that creates a button a specific format with the supplied text and location.

+2  A: 

This jQuery plugin will fix buttons for you. It takes buttons, create anchor tags of them, and style them. This way, users without JS will only see the standard squared off button (and it will work perfectly), so it's no big loss...

I've used it myself, and it's easy to use.

peirix
This link is now dead.
dalbaeb
I think this is the same plugin as I linked to back in july: https://www.franklincovey.com/msb/public/javascript/jquery-corners-0.3/jquery.corners.html
peirix
+1  A: 

Try using DD_roundies, its a very efficient js code that can round anything, and supports hover also.

vsync