Using joox to edit an attribute

121 views
Skip to first unread message

Gabriella Turek

unread,
Dec 4, 2012, 10:12:12 PM12/4/12
to joox...@googlegroups.com
I did not see any examples about editing content, only adding and removing.
Is there a direct way to edit the value of an attribute with joox? If so can I have a simple example?
Thanx

Lukas Eder

unread,
Dec 5, 2012, 8:33:32 AM12/5/12
to joox...@googlegroups.com, tet...@gmail.com
Hello Gabriella,

Just as with jQuery, jOOX allows for editing attributes through the
same API as adding them. In that way, the example given on the website
is also valid for editing an attribute. The Javadoc on
org.joox.Match.attr(String name, String value) reads:

> Set an attribute on all elements in the set of matched elements. If value is null, then the attribute is removed. If the attribute already exists, then it is replaced.

Cheers
Lukas

2012/12/5 Gabriella Turek <tet...@gmail.com>:

Gabriella Turek

unread,
Dec 5, 2012, 4:45:58 PM12/5/12
to joox...@googlegroups.com, tet...@gmail.com
Ah thanx, I'll take a look. I am not familiar with JQuery so I did not make the connection. Cheers!
Reply all
Reply to author
Forward
0 new messages