In my HTML code, I have the following:
<div id="ot-lang-src">
<button id="rerun"></button>
<button id="select">Choose a language</button>
<ul id="ui-menu-left">
</ul>
</div>
Using the jquery-ui-1.9.2.custom library that I downloaded, I am encountering an issue with setting the border-radius property. I want to apply border-radius only to the left side of the button, while keeping the right side at 0px.
Upon page load, jquery-ui-1.9.2.custom.js adds the .ui-corner-all class to the button, which sets the border for all four corners to 2px. I attempted to remove the .ui-corner-all class and add the .ui-corner-left class using the following code:
$("button#rerun").removeClass("ui-corner-all").addClass("ui-corner-left");
However, this approach did not work as expected. Looking at the code in jquery-ui-1.9.2.custom.css:
.ui-corner-all, .ui-corner-top, .ui-corner-left, .ui-corner-tl { -moz-border-radius-topleft: 2px; -webkit-border-top-left-radius: 2px; -khtml-border-top-left-radius: 2px; border-top-left-radius: 2px; } .ui-corner-all, .ui-corner-top, .ui-corner-right, .ui-corner-tr { -moz-border-radius-topright: 2px; -webkit-border-top-right-radius: 2px; -khtml-border-top-right-radius: 2px; border-top-right-radius: 2px; } .ui-corner-all, .ui-corner-bottom, .ui-corner-left, .ui-corner-bl { -moz-border-radius-bottomleft: 2px; -webkit-border-bottom-left-radius: 2px; -khtml-border-bottom-left-radius: 2px; border-bottom-left-radius: 2px; } .ui-corner-all, .ui-corner-bottom, .ui-corner-right, .ui-corner-br { -moz-border-radius-bottomright: 2px; -webkit-border-bottom-right-radius: 2px; -khtml-border-bottom-right-radius: 2px; border-bottom-right-radius: 2px; }
I am questioning if this is the correct approach to solving the problem and how to effectively remove the .ui-corner-all class. Is there a better solution for addressing this issue?
Thank you!