codepb/jquery-template

Array of string

Closed this issue · 1 comments

Hi,

if I have a JSON like this: ["a","b","c","d","e"]
How can I have an output like the following?

<ul>
<li>a</li>
<li>b</li>
<li>c</li>
<li>d</li>
<li>e</li>
</ul>

Thanks.

This is actually in the code for the Simple Example in the repository. Have a look at where it binds to "this". A simple jsfiddle is here: http://jsfiddle.net/upycc3sp/