I have a javascript function that removes the existing buttons and adds new ones instead.
Here is the code:
function FunctionName(){
("button").remove();
// This works fine.
//but however, with the following add code, I don;t get a jquery ui button.
var element = document.createElement("input");
element.setAttribute("type","button");
// other code
divName = get <div> by ID;
divName.appendChiled(element);
}
Is there any way to add a jquery ui button dynamically:
like:
divName.add("button");
It did not work...