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
12:03 UTC
Read the original article
Hit count: 273
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