jQuery Awesome Insert
Inserting fresh HTML elements into jQuery can be a tough thing. A lot of time you are hand building every element, attribute, and content. It's unnatural. A better way would be to just to write out the HTML you want, then tell jQuery to find an element through it's awesome CSS engine, then toss it in. Sometimes, code speaks louder than words, so here it is:
var NAME = $('TEXT'); $("#DIV").prepend(NAME);
Enjoy.

Comments
Post new comment