Linan Wang schrieb:
> Here is my little plugin to create dom element:
> 
> http://204.13.69.149/~wang/
> 
> My questions are:
> 1, Has anybody done this before?
> 2, As it's my first crack on jQuery, anything wrong with the api call?
> 3, Is there any more elegant solutions?
> 
> -- 
> Best regards
> 
> Linan Wang

There are other plugins out there for DOM creation, and I think the 
example snippet could be done with jQuery alone:

$('<table></table>').css(...).append('<tr></tr>').find('tr').append('<td></td>')...

OK, maybe it is not as elegant.

I wouldn't call the method tag(), because a tag is not an element and 
elements (nodes) is what you create. More about this here:

http://lachy.id.au/log/2004/12/html-tags


-- Klaus

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to