$($())

6 views
Skip to first unread message

Al Rom Romans

unread,
Feb 11, 2012, 12:27:45 AM2/11/12
to jqwicket-user
Hi

I know that this is a silly question, but how do I create I create a
jquery object from a jquery object?
foir example:

$(
$("#myid").attr(referenceToAnotherElement)
).change();


Thanks!

Al Rom Romans

unread,
Feb 12, 2012, 11:39:34 AM2/12/12
to jqwicket-user

I believe that I did not express clearly.
I want something like:

$($("#id").anotherElement).change();

If I try:
JQuery.$(JQuery.$(wicketComponent).attr('anotherElement')).change() it
will double quote the inner expression

I solved the problem doing this:
JQuery.$().appendRawCharSequence("(" + JQuery.$
(wicketComponent).attr('relElement') + ")").change();
Reply all
Reply to author
Forward
0 new messages