A
Andrew Koptyaev
I have next piece of code.
I have a question - why text "Months" not in there option line of form.
Just after form. I is not right for me. I want in there option line.
var oOptionIntervalInputM = cElement('option');
cAttribute(oOptionIntervalInputM,'value','m');
var oOptionIntervalInputTextM = document.createTextNode('Months');
oOptionIntervalInputM.appendChild(oOptionIntervalInputTextM);
function cElement(el) {
this.obj = document.createElement(el);
return this.obj;
}
function cAttribute(obj,att,val) {
obj.setAttribute(att,val);
return this.obj;
}
I have a question - why text "Months" not in there option line of form.
Just after form. I is not right for me. I want in there option line.
var oOptionIntervalInputM = cElement('option');
cAttribute(oOptionIntervalInputM,'value','m');
var oOptionIntervalInputTextM = document.createTextNode('Months');
oOptionIntervalInputM.appendChild(oOptionIntervalInputTextM);
function cElement(el) {
this.obj = document.createElement(el);
return this.obj;
}
function cAttribute(obj,att,val) {
obj.setAttribute(att,val);
return this.obj;
}