Groups
Groups
Sign in
Groups
Groups
MooTools Users
Conversations
About
Send feedback
Help
finalText = $('<div/>').text(finalText).html();
31 views
Skip to first unread message
Hamburger
unread,
Oct 2, 2012, 9:16:39 AM
10/2/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mootool...@googlegroups.com
Hello,
I need some help to translate jquery to mo.
What is the $('<div/>') in
finalText = $('<div/>').text(finalText).html();
Does it create a div?
the complete code is here:
https://github.com/freqdec/slabText/blob/master/js/jquery.slabtext.js
Line: 142
thx in advance
Arian Stolwijk
unread,
Oct 2, 2012, 9:22:27 AM
10/2/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mootool...@googlegroups.com
Yes, $('<div/>') creates a new div element, same as new Element('div') in MooTools.
So that code would be like:
finalText = new Element('div', {text: finalText}).get('html');
Hamburger
unread,
Oct 2, 2012, 9:45:18 AM
10/2/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mootool...@googlegroups.com
thx Arian for the fast answer
Reply all
Reply to author
Forward
0 new messages