is there a way to add jquery ui classes into my own css file per element, IE:
input {
ui-corner-all /* <- JQuery UI class */
}
as opposed to adding the class to every input, IE:
<input name="myinput" type="text" class="ui-corner-all" value="" />
You can use the jQuery
.addClassmethod to add a class to elements at any time, including page load, such as:This would add the
ui-corner-allclass to every input element in the html when the page loads. If you would like to select only certain elements on the page, use a more specific selection, such as:This will add the
ui-corner-allclass to all of the elements on the page that have the ID ofmyInput.