Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I provided a sample output page using jquery to highlight to menus.</p> <p>You'll have to change the selectors in jquery because I don't now all surrounding elements in your page. Hope this helps or at least gives you inspiration ;-)</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.0/jquery.min.js"&gt;&lt;/script&gt; &lt;script&gt; $(document).ready(function() { // Add a click handler on in-page links // You'd better provide another selector but I don't know the surrounding elements. I selected all a elements that contain a '#' inside a div. $('div a[href*=#]').click(function() { var theID = $(this).attr('href'); var targetElementName = theID.substring(theID.indexOf('#') + 1) // "unhighlight" other elements // Set bg of all datatitlestyle elements to blue $('.dataTitleStyle &gt; a[name]').parent().css('background','blue'); // highlight the element // Set bg of clicked datatitlestyle element to red $('.dataTitleStyle &gt; a[name=' + targetElementName + ']').parent().css('background','red'); }); }); &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;!-- The menu --&gt; &lt;div&gt; &lt;a href="#this_is_the_id"&gt; The output of xslt 1 &lt;/a&gt; &lt;br /&gt; &lt;a href="#this_is_the_second_id"&gt; The output of xslt 2 &lt;/a&gt; &lt;/div&gt; &lt;!-- Content --&gt; &lt;div class = "dataTitleStyle" style="background: blue;"&gt; &lt;a name="this_is_the_id"&gt;A title&lt;/a&gt; &lt;/div&gt; &lt;div class = "dataTitleStyle" style="background: blue;"&gt; &lt;a name="this_is_the_second_id"&gt;A second title&lt;/a&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload