I have the following JavaScript that creates a div and then appends it to the body and then inserts some dynamically generated HTML into it. cartDiv = document.createElement
You'll have to actually USE jQuery to build the div, if you want to write maintainable or usable code.
//create a div var $newDiv = $(''); //set the id $newDiv.attr("id","myId"); 0 讨论(0) 查看其它6个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复