kZit met een probleem dat wanneer ik
newEditbox.setAttribute("class", "editbox");
Dat dit geen effect heeft. Het zit in een extern css bestand. Wanneer ik het doe met style dan evenmin.
Wie heeft een oplossing?
code:
function Init(){
//create a new editbox-object
var newEditbox = document.createElement("input");
//set attributes for the object
newEditbox.setAttribute("type", "text");
newEditbox.setAttribute("value", "t");
newEditbox.setAttribute("id", this.id);
newEditbox.setAttribute("name", this.id);
newEditbox.setAttribute("width", "50");
newEditbox.setAttribute("class", "editbox");
//set events for the object
newEditbox.attachEvent("onblur",CheckProperty);
//get the id of the object
obj = eval(this.id);
//make object empty
obj.innerHTML = "";
//place the object
obj.appendChild(newEditbox);
}
newEditbox.setAttribute("class", "editbox");
Dat dit geen effect heeft. Het zit in een extern css bestand. Wanneer ik het doe met style dan evenmin.
Wie heeft een oplossing?
code:
function Init(){
//create a new editbox-object
var newEditbox = document.createElement("input");
//set attributes for the object
newEditbox.setAttribute("type", "text");
newEditbox.setAttribute("value", "t");
newEditbox.setAttribute("id", this.id);
newEditbox.setAttribute("name", this.id);
newEditbox.setAttribute("width", "50");
newEditbox.setAttribute("class", "editbox");
//set events for the object
newEditbox.attachEvent("onblur",CheckProperty);
//get the id of the object
obj = eval(this.id);
//make object empty
obj.innerHTML = "";
//place the object
obj.appendChild(newEditbox);
}