Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<pre><code>&lt;%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %&gt; &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;head runat="server"&gt; &lt;title&gt;StatockOverflow&lt;/title&gt; &lt;script src="http://ajax.aspnetcdn.com/ajax/jquery/jquery-1.5.1.min.js" type="text/javascript"&gt;&lt;/script&gt; &lt;script type="text/javascript"&gt; $(document).ready(function() { $('.class_my').hide(); $('.class_my').parent().hide(); $('.class_other').hide(); $('.class_other').parent().hide(); }) function showanchor(obj) { if ($($(obj).parent()).children("ul").children("li").children('a.class_my').length &gt; 0) $($(obj).parent()).children("ul").children("li").show(); $($(obj).parent()).children("ul").children("li").children('a.class_my').show(); } &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;form id="form1" runat="server"&gt; &lt;div&gt; &lt;ul&gt; &lt;li id="g" class="item"&gt; &lt;a name="g" href="javascript:void(0);" class="title" onclick="showanchor(this);"&gt;G&lt;/a&gt; &lt;ul&gt; &lt;li&gt; &lt;a href="?page_id=242&amp;amp;fid=9&amp;amp;entry=due7ya" class="class_other"&gt;Grovy Roy&lt;/a&gt; &lt;a href="?page_id=242&amp;amp;fid=9&amp;amp;entry=due7ya" class="class_my"&gt;Gova Patel&lt;/a&gt; &lt;/li&gt; &lt;/ul&gt; &lt;/li&gt; &lt;li id="h" class="item"&gt; &lt;a name="h" href="javascript:void(0);" class="title" onclick="showanchor(this);"&gt;H&lt;/a&gt; &lt;ul&gt; &lt;li&gt; &lt;a href="?page_id=242&amp;amp;fid=9&amp;amp;entry=due7ya" class="class_other"&gt;Honey Roy&lt;/a&gt; &lt;a href="?page_id=242&amp;amp;fid=9&amp;amp;entry=due7ya" class="class_my"&gt;Gova Patels&lt;/a&gt; &lt;/li&gt; &lt;/ul&gt; &lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;/form&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