Click here to Skip to main content
15,911,139 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I have a div tag "tab-hidden" inside my master-page.aspx file and i am including my master-page in all my pages present in my project. But the issue is i have to hide that div tag from some pages in my project.


ASP.NET
<div class="tab-hidden" style="margin-top: 60px; margin-left: 203px;">
      <div class="tabbing" id="ipi1">
          <a href="Client_PlaningInformation.aspx" onclick="landingdetails('ipi')">

              Important planning information
         </a>
      </div>
      <div class="tabbing" id="ots1">
          <a href="Client_OrderYourStand.aspx" onclick="landingdetails('ots')">

              Order Your Stand Services
          </a>
      </div>
      <div class="tabbing" id="marketing1" runat="server">
          <a href="#" onclick="landingdetails('marketing')">

              Marketing
          </a>
      </div>
  </div>


What I have tried:

I have not tried anything regarding it
Posted
Updated 15-Aug-17 20:29pm
Comments
Karthik_Mahalingam 16-Aug-17 3:27am    
someother page?
master page ?

Quote:
I have not tried anything regarding it

You should - at least some Googling...
.hide() | jQuery API Documentation[^]
 
Share this answer
 
$( document ).ready(function() {$('idofdiv').hide()})'
 
Share this answer
 
put this code to your child page. $( document ).ready(function() {$('idofdiv').hide()})'
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900