I am having trouble with adding the buttonClassvariable into the class attribute. How can I escape the double and single quotes here?
String buttonClass= changed ? "changeButton" : "dontChangeButton";
button.append("<input id='" + id + "' type='button' value='" + buttonValue + "' class='" + buttonClass
+ "' ui-button ui-widget' />");