Jquery – JTemplate template missed elements

jqueryjquery-pluginsjtemplate

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.

Best Solution

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

http://jsbin.com/icuce