I'm trying to make some edits to a form written in javascript, however I'm really just getting acquainted with this language. I'm trying to format a couple of buttons; to do this, I would like to add a class to them. The buttons in question are "Add" and "Cancel" and they are rendered with the following function:
showAddDialog: function() {
$("#dialog").data("product",upsmart.products.pcounter);
$("#dialog").html(upsmart.products.createForm(upsmart.products.pcounter));
$("#photo_button").click(open_media_library);
upsmart.products.pcounter++;
$("#dialog").dialog({
width: 600,
modal: true,
buttons: {
"Add": upsmart.products.addProduct,
"Cancel": function() {
$(this).dialog("close");
}
}
});
},
How might I accomplish this?
Thanks for any help.