Solved

Making jquery sliding panel show hide div accessible...trouble, please help

Posted on 2011-09-21
5
263 Views
Last Modified: 2012-08-13
Hi Experts,

I have a script that shows a div and hides a div when the user clicks view, it works fine, but when js is disabled, the panels or links with the script do not open by default, if js disabled.  please advise, you may view this at the following location http://www.madisonassets.co.zm 

On the services links, the links show more links on mouseover, and for the right panels, when the user clicks view, it displays the contents of the hidden div...

It should display by default if js disabled.
0
Comment
Question by:kasondeneddy
  • 2
  • 2
5 Comments
 
LVL 16

Expert Comment

by:Easwaran Paramasivam
ID: 36573103
set the visible=true and style="display:block" in your div tag by default.
0
 
LVL 15

Expert Comment

by:Eyal
ID: 36573232
the default state should be visible

when page loads hide it with javascript. so if the browser doesn't support javascript nothing will happen and all will be visible.
0
 

Author Comment

by:kasondeneddy
ID: 36579545
Hi,

I have attached my code, new to jquery, pls help on how to implement..you may access the site n front end code at the following link....http://www.easywebzambia.com/mamco2011/

I assume, i remove the display none, but how do I enable the dispay none only if js is enabled..?
0
 
LVL 15

Accepted Solution

by:
Eyal earned 500 total points
ID: 36579685
very simple
$(document).ready(function () {
    $(#elementid).hide();
});
0
 

Author Closing Comment

by:kasondeneddy
ID: 36941930
Thanks experts
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question