I want to prepend the following within a div using Jquery:
-
You can't.
Despite the abstraction it offers, jQuery doesn't operate on HTML, it operates on a DOM (where there are no start tags and no end tags, just elements).
Build the DOM you want to prepend, and then prepend it.
var $wrapper = $('');
var $inner = $('')
var $col = $('');
$inner.prepend($col);
$wrapper.prepend($inner);
$('.mpfy-tags-list').prepend($wrapper);
讨论(0)
- 热议问题