example how to create dynamic javascript object :]


Check out the below lines, sure it will help;


x=new Object();
propertyName="nameProperty";
propertyValue="John";
eval("x."+propertyName+"='"+propertyValue+"'");

Comments

Popular Posts