xml - jQuery creating div id with style -
i have small issue hope can me out with.
here issue:
i have xml contains following:
<main template.main.style="width: 99px; height: 500px; margin: 0 auto;"> <item template.item.style="delay: 1500; animation: all;" imageone="images/test.png" template.imageone.class="sa-33" template.imageone.style="position: absolute; animationdirection: left; duration: 50;"/> </main> now trying add style properties div via jquery.
i have tried instance:
var product = $('<div id="product"></div>').appendto(body); product.css('style', $(this).attr("template.item.style")); to has having no effect, overwrite or add place in xml. @ later date place data stored comes out of application.
i have tried attr instead of css , no avail..
so @ jquery produces div following:
div class="sa-layer" style="delay: 1500; animation: all;"> any appreciated. (sorry english)
Comments
Post a Comment