Yes, that was my point - jQuery gets straight to the target, using id of the parent + className of it's child. Brilliant!
Back in TW realm, Eric saves the day yet again. Looks like the bug needs to be sorted out before jQuery use kicks in for real. -- R. On Apr 22, 12:27 pm, Eric Shulman <[email protected]> wrote: > var target=jQuery('#'+here.id.replace(/ /g,'\040')+' .'+targetClass) > [0]; > > Apparently, jQuery() can't handle the spaces. But > document.getElementById() does! Thus, you could write > > var target=document.getElementById(here.id); > > Of course, by definition, this will result in target == here... and > since you already have the value of 'here', you don't even need to do > the above line to get the desired element. In addition, because you > are really trying to retrieve an element contained within 'here' that > has a given classname, you can actually just write the following: > > var target=here.getElementsByClassName(targetClass)[0]; > > enjoy, > -e --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/TiddlyWiki?hl=en -~----------~----~----~----~------~----~------~--~---

