Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- jQuery GREP JSON empty data filter
- $(data.content).each(function(index, content){
- $("#htmlID").append('<span>' + content.myinfo + ');
- });
- {
- "content":
- [
- {"myinfo":"Bill Clinton 095 years old. "},
- {" "},
- {"myinfo":"Bill Clinton 295 years old. "},
- {" "}
- ]
- }
- $(data.content).each(function(index, content){
- if(!(typeof content.myinfo === "undefined" ||
- content.myinfo.length<1)){
- $("#htmlID").append('<span>' + content.myinfo);
- }
- });
- {" ": ""}
Add Comment
Please, Sign In to add comment