Using jquery to change a div id -
i have html page with:
<div id="box-"></div> how use jquery change (is append right word?) box- box-2353 2353, or whatever number, set in separate .txt file?
i've found solutions changing class, don't have option since it's coming rss feed , set id.
try (plain javascript):
document.getelementbyid('box-').id += getthenumber() or jquery:
var $box = $('#box-') $box.attr('id', $box.attr('id') + getthenumber())
Comments
Post a Comment