Search code examples
jquery-pluginsjqueryjtemplate

JTemplate template missed elements


I have this template:

<ul id="warningMessages" style="text-align: left; padding-left: 4px;">
    {#foreach $T as msg}
        <li>{$T.msg.Value}</li>
    {#/for}
</ul>

When applied look like this:

<ul>
    <li>Value 1</li>
    <li>Value 2</li>
</ul>

The style and id information ("id="warningMessages" style="text-align: left; padding-left: 4px;") disappears and I don't know why.


Solution

  • Can't reproduce your problem. Check this sample page. Works as expected

    http://jsbin.com/icuce