Saturday, 15 May 2010

jquery - How to access Object parameters having spaces in javascript -



jquery - How to access Object parameters having spaces in javascript -

this question has reply here:

javascript property access: dot notation vs. brackets? 7 answers access javascript object space in key 1 reply

suppose if object has parameters var data={"f name":"vishal"} , want access parameter "f name" in javascript. know there should not space in parameters of object if has space in how can read it.

spaces in attribute names ok in javascript. reference them the

object["param name"]

syntax. moreover, utf8 character, except command characters, valid in attribute names.

javascript jquery json

No comments:

Post a Comment