Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I think Its working <a href="http://jsfiddle.net/SrsxA/2/" rel="nofollow">http://jsfiddle.net/SrsxA/2/</a>... </p> <p>but in you post you missed a comma(<code>,</code>) for second JSON object</p> <pre><code> [{"ImagePath":null,"ThemeTemplateId":1},{"ImagePath":null, "ThemeTemplateId":2}] ^-- need comma here </code></pre> <h3>According to edit</h3> <pre><code>d: "[{"Ima.. ^--- you don't need `"` here and at last, don't need to wrap with `""`. </code></pre> <p><strong>Full Working code:</strong></p> <pre><code>var themelist = { d: [{ "ImagePath": 'a', "ThemeTemplateId": 1, "BorderWidth": null, "BorderStyle": null, "OptionTextUnderline": null, "OptionTextItalic": null, "OptionTextBold": null, "OptionTextSize": null, "OptionTextFont": null, "QuestionTextUnderline": null, "QuestionTextItalic": null, "QuestionTextBold": null, "QuestionTextSize": null, "QuestionTextFont": null, "SurveyTitleUnderline": null, "SurveyTitleItalic": null, "SurveyTitleBold": null, "SurveyTitleSize": null, "SurveyTitleFont": null, "BorderColor": null, "SurveyTitleColor": null, "OptionTextColor": null, "ThemeName": null, "BackgroundColor": null, "QuestionTextColor": null}, { "ImagePath": 'b', "ThemeTemplateId": 2, "BorderWidth": null, "BorderStyle": null, "OptionTextUnderline": null, "OptionTextItalic": null, "OptionTextBold": null, "OptionTextSize": null, "OptionTextFont": null, "QuestionTextUnderline": null, "QuestionTextItalic": null, "QuestionTextBold": null, "QuestionTextSize": null, "QuestionTextFont": null, "SurveyTitleUnderline": null, "SurveyTitleItalic": null, "SurveyTitleBold": null, "SurveyTitleSize": null, "SurveyTitleFont": null, "BorderColor": null, "SurveyTitleColor": null, "OptionTextColor": null, "ThemeName": null, "BackgroundColor": null, "QuestionTextColor": null}] }; $.each(themelist.d, function(index, theme) { console.log(theme['ImagePath']); console.log(theme.ImagePath); }); </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload