let's say I have a mark-up like this:
<script>
var doSomething = function () {
var container = $('.container');
var list = $('#result-list');
list.find('.result').attr('id', 'x');
container.append(list.html());
};
</script>
<script type="text/html" id="result-list">
<div class="result"></div>
</script>
<a href="#" onclick="doSomething();">DO</a>
<div class="container">
</div>
I can't change div id attribute which is placed inside html-script. I don't know what or where is the problem. Any advice will be helpful.
scripttag have adivelement?typetohtml-script. I use it for something like template in my markup.in your className.And what is issue..please rephrase your question