Personally, I didn't like any of the current DOM creation plugins out there
for jQuery. So I created my own, and here it is :)

http://www.alterform.com/resources/jqdom

Examples and documentation are on the page, but a simple example of adding
some dom Elements to the page:

$('body').dom('div').attr({align:'right','class':'my_div'}).dom('a').attr({href:'http://alterform.com'}).text('Alterform').end().end();

That would result in adding the following code to the body:

<div align="right" class="my_div">
http://alterform.com Alterform 
</div>

And don't worry, if you only want to store DOM elements into variables for
operating on them later, there is a way to do that too with $.dom();

Okay, enough rambling from me.
Enjoi...http://www.alterform.com/resources/jqdom
-- 
View this message in context: 
http://www.nabble.com/jQDOM---My-entry-into-the-jQuery-DOM-creation-foray-tf3126694.html#a8663077
Sent from the JQuery mailing list archive at Nabble.com.


_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to