Is there any function to append child by typing only the tag name and content ?

9 views
Skip to first unread message

محمد فارس

unread,
May 27, 2013, 7:08:31 PM5/27/13
to support-...@googlegroups.com
Is there any function to append child by typing only the tag name and content like createElement('div', 'contnet of div') in Dom ?

TechnoSophos

unread,
May 28, 2013, 9:27:56 AM5/28/13
to support-...@googlegroups.com

No. The closest is append().

That's not a bad idea, though. Does jQuery have anything like that?

On May 27, 2013 6:08 PM, "محمد فارس" <faress...@gmail.com> wrote:
Is there any function to append child by typing only the tag name and content like createElement('div', 'contnet of div') in Dom ?

--
You received this message because you are subscribed to the Google Groups "support-querypath" group.
To unsubscribe from this group and stop receiving emails from it, send an email to support-queryp...@googlegroups.com.
To post to this group, send email to support-...@googlegroups.com.
Visit this group at http://groups.google.com/group/support-querypath?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Matt Farina

unread,
May 28, 2013, 9:51:59 PM5/28/13
to support-...@googlegroups.com
In jQuery/JavaScript the best method would be to create the element using the native call (document.createElement()) and then attaching that using a jQuery method like append(). This is the most performant and memory efficient manner.
Reply all
Reply to author
Forward
0 new messages