I will create an object which has first name attribute. I have a textbox. Text in textbox will be object’s first name value.
alert($("#Name").val() );
personObj = { firstname: ($("#Name").val())}
First line gives me the name of person. But when i want to give this name to my object, it fails.
Thank you for your help!
This works for me…