I found a way to do this;
<script>
here=story.findContainingTiddler(place);
var link=here.getAttribute("tiddler");
jQuery("a[tiddlylink="+link+"]").css("color", "red");
</script>
The next thing i want to do is to change the color back when the
tiddler is closed.
My aim is to change fomat of links to tiddlers that are open.
Alex
On Jun 4, 11:48 am, Alex Hough <[email protected]> wrote:
> I can't get the jQuery contains to take the variable. it works with
> text - contains('About') - but not when i attempt to find the title
> of the open tiddler
>
> Works
> ======
> $("#mainMenu .tiddlyLinkExisting:contains('About')").css("color",
> "red");
>
> Not Works
> =======
>
> <script>
> (function($){
> here=story.findContainingTiddler(place);
> var title=here.getAttribute("tiddler");
> var tiddler=store.getTiddler(title);
> var menuItem = 'tiddler';
> $("#mainMenu .tiddlyLinkExisting:contains(menuItem)").css("color",
> "red");
>
> })(jQuery);
>
> </script>
>
> I think i am missing something very elementary here.
>
> thanks for any help
>
> Alex
--
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.