Asp.Net(C#) Jquery Json Data problem
Posted
by oraclee
on Stack Overflow
See other posts from Stack Overflow
or by oraclee
Published on 2010-04-16T11:46:08Z
Indexed on
2010/04/16
11:53 UTC
Read the original article
Hit count: 285
hi all;
My Json Data
{"menu": {
"id": "file",
"value": "File",
"popup": {
"menuitem": [
{"value": "New", "onclick": "CreateNewDoc()"},
{"value": "Open", "onclick": "OpenDoc()"},
{"value": "Close", "onclick": "CloseDoc()"}
]
}
}}
Jquery Code:
$(document).ready(function() {
$("#Button1").click(function() {
var asd = "test";
$.get("CallBack.Aspx", { asd: asd }, function(data) {
$.each(data, function() {
})
})
})
})
I need "menuitem" in values how to make ?
"menuitem": [ {"value": "New", "onclick": "CreateNewDoc()"},
© Stack Overflow or respective owner