Note that there are some explanatory texts on larger screens.

plurals
  1. PODisplaying Data through div and using show and hide functionalities
    primarykey
    data
    text
    <p>My html file is :</p> <pre><code> &lt;!DOCTYPE html&gt; &lt;html&gt; &lt;body&gt; &lt;nav&gt; &lt;ul id="leftNavUl"&gt; &lt;li&gt;&lt;a id="sr" href="#staticRoutingFiledset"&gt;Static Routing&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a id="vp" href="#vpn"&gt;VPN&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a id="fw" href="#firewall"&gt;Firewall&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a id="ip" href="#IPS"&gt;IPS&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/nav&gt; &lt;div class="features"&gt;&lt;fieldset&gt;ABC&lt;/fieldset&gt;&lt;/div&gt; &lt;div class="features"&gt;A&lt;/div&gt; &lt;div class="features"&gt;B&lt;/div&gt; &lt;div class="features"&gt;C&lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>My Css File is </p> <pre><code>.features{ width: 760px; height:370px; margin-bottom: 12px; border-color: #000000; background-color: #FFFFFF; position:absolute; top:12px; left:140px; } ul#leftNavUl { color:#FFF; list-style-type:none; margin-top:41px; } ul#leftNavUl li { background-color:#0357ea; margin:1px; width:120px; } #leftNav ul#leftNavUl li a { color:#FFF; display:block; width:120px; height:30px; text-align:center; text-decoration:none; line-height:30px; font-family: Arial, Helvetica, sans-serif; font-size: 15px; } </code></pre> <p>My js file should be able to show and hide in the right side I am creating a menu in the left column and showing coorresponding div in the right column.</p> <p>Can you tell me whether I am doing it right in the js file:</p> <pre><code>document.getElementById('#vp').onClick()=function(){ //displaying all the other divs and hiding the overlapping div // somehow its not working please suggest } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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