How do you assign object properties?
Answers were Sorted based on User's Feedback
Answer / m_xyz
var obj=new Object();
obj["age"]=18; or obj.age=18
Is This Answer Correct ? | 19 Yes | 0 No |
var obj=new Object();
obj["age"]=18; or obj.age=18
Is This Answer Correct ? | 7 Yes | 0 No |
Answer / rubin thomas
var regiondb_stcty = new Object()
regiondb_stcty["Andaman and Nicobar"] = [ {value:"Port
Blair", text:"Port Blair"}];
u can do assign option elements with this object;
like a state city dyanmic population.
email me if u want thsi code
Is This Answer Correct ? | 1 Yes | 1 No |
just for testing
Why jquery is used instead of javascript?
How do I open javascript in browser?
Enumerate the differences between Java and JavaScript?
How you can modify XAML content from JavaScript in Silverlight?
What are the difference between javascript and jquery?
What are the types of variables in javascript?
How to test 404 page in QA
How to write html code dynamically using JavaScript?
how can we retrieve value from one database server and store them another database server using sql server code
What are all the types of Pop up boxes available in JavaScript?
How do you know if a set of points is a function?