Hi

I have a var in JS

var p = {
element1,
....
}

I want to set element1 to document.getElementById('some id'), some thing
like this :

var p = {
element1 : document.getElementById('some id') ,
....

MyFuction : function(){

element1.value="some text";
},


}



In this case MyFuction doesnt work :(

can somebody help to solve it ?
_______________________________________________
Project_owners mailing list
[email protected]
https://www.mozdev.org/mailman/listinfo/project_owners

Reply via email to