JQuery :: UI Accordion Option "collapsible:true" Not Collapsing?

Apr 23, 2009

I have a simple Accordion which I have given the settings:

$("#accordion").accordion({
event: "mouseover",
header: "h3",

[code]....

View 1 Replies


ADVERTISEMENT

JQuery :: Making SlideToggle Collapsible Like An Accordion?

Jun 13, 2011

I have a slideToggle div, when clicked slides down like a normal slideToggle. However, I have multiple slideToggle divs on top of each other, similar to an Accordion. Is there a way to use the collapsible characteristic for slideToggles like used in an accordion? Meaning when one slideToggle div is open, and then another is clicked, the previously opened one automatically closes. I am trying not to use an accordion due to other factors with my site.

View 2 Replies View Related

JQuery :: Accordion - Stop The Rollover Effect In The Sub Menus Until The Accordion Animation Is Finished?

Aug 5, 2010

I created an accordion menu with rollover sub menus. My question is there a way to stop the rollover effect in the sub menus until the accordion animation is finished? When I click on a category link on the accordion the sub menu links flashes until the animation is done.

View 1 Replies View Related

JQuery :: Difference Between Accordion Widget UI And Accordion Plugin?

Oct 1, 2009

explain to me the difference between the two? I just finished an online tutorial on Accordian Widget UI and it

View 5 Replies View Related

Expanding And Collapsing

Jul 25, 2007

Is there a way to expand and collapse in JavaScript? What's the best way?

View 1 Replies View Related

JQuery :: How To Make Collapsible List

Jun 15, 2009

I'm just starting to learn JavaScript and have been playing around with jQuery. I'm trying to make a collapsible list. I've got part of it working and am having trouble getting the rest to work. I'm using a unordered list, if you click on Category 1 or Subcategory 1 it works exactly as I want them to but none of the others work. I sure I need some kind of array to get the others working, but I'm not sure where to start? This list is queried from a database so Categories, Subcategories, Items will vary, but this is the basic structure.

<script type="text/javascript" src="jquery-1.3.2.min.js"></script>
<style type="text/css">
.list {
background-color:#FFFFFF;
color:#000000;
}.list ul{
padding:0;
margin:0;
list-style-type:none;
}.list li{
position:relative;
list-style-type:none;
width:300px;
} .....

View 2 Replies View Related

Table With Collapsing Rows

Nov 20, 2006

I write a simple javascript to expand / collapse some rows of a table.
The problem is that when I click more than one time the link to expand
/collapse the rows I get an unwanted extra space after such rows. Code:

View 2 Replies View Related

How To Create Collapsing Boxes

Jun 24, 2010

I would like to create collapsing boxes.I would like for them to have different colors.

Box1 Box 3
Link 1 Link 1
Link 2 link 2
Link 3 Link 3

[code]....

I got the code to do the first column (box 1 and 2). But I don't know how to add a second column (box 3 and 4).

View 1 Replies View Related

Expanding / Collapsing <div> Tags

Sep 29, 2006

Ive got the follwoing javascript code that will expand/collapse a section of my site that is enclosed within a <div> tag.

function showorhide(id) {
if (document.getElementById(id).style.display == "none")
{
document.getElementById(id).style.display = "block";
}
else
{
document.getElementById(id).style.display = "none";
}
I am using asp.net 2.0 to code my site with, the above code works fine (example below:

<a href="#" Personal and Contact Details</a>
<div id="basicdetails">

</div>
All that is enclosed within the <div id="basicdetails"> is expanded / collapsed.

HOWEVER, im geting a few problems with this method: 1. On a page load, the div tags are always displayed, is there any way of having them collapsed on page_load?

2. When i put 2 seperate <div> tags (i.e. 2 seperate expand/collapse sections on the same page), one is collapsed and one is expanded, when working within the expanded one and a button is clicked (for saving of info from a form), both divs are then expanded?

View 10 Replies View Related

JQuery :: Selector With Collapsible Table Rows?

Jul 28, 2009

Im making a table that has collapsable/expandable rows and im having a bit of trouble. i started using the code from this site[URL].. post/20 lugin.aspx but where as this one has one row which is clickable to reveal the one underneath it, i need to reveal the next 2 underneath.

[Code]...

but this only reveals the first hidden row for the one i clicked. i need both to toggle. im new to jquery so havent mastered the selectors yet.

View 6 Replies View Related

Sections Not Collapsing Properly In Firefox

Jul 23, 2005

I've got a page that shows a number of packages available for sale. Each
package has a little description, and then a (sometimes long) list of
features for each package. I thought it would be a good idea to let
visitors hide the details for each package, so that they can see just
the summaries together. So I borrowed some code (can't remember from
where), which was designed for expandable/collapsible menu trees, and
used it to show/hide the details of the packages.

The code works fine, but the only problem is that when you hide a
section, the page doesn't resize itself. The text underneath moves up,
but below that a huge empty space is left. The scroll bars should change
to reflect the page's new (smaller) length, but instead they stay the
same, and let you scroll through all the empty nothing at the bottom of
the page.

I've tested the page is IE6 and Firefox 0.9 - I only have this problem
in Firefox, in IE the whole page shrinks and the scroll bars change
accordingly. Any suggestions? I though maybe I need to call some
javascript function to refresh/recalculate the page - I tried using
document.normalize() straight after the section got hidden, but it
didn't help. Any other such functions that might do the trick?

Here's the code:

View 4 Replies View Related

Collapsing Menus - Alert Does Not Show Up

Sep 21, 2009

I was told to use some Javascript to achieve collapsing menus. This is my current try, but it doesn't seem to be working. The end result should be like the menus on this site: [URL]

This is my code so far:
<HTML><HEAD>
<title>Test</title>
</HEAD><BODY>
<script type="text/javascript">
var hide = 0;

function Show(){
alert("Test");
if ( hide == 0 ){
document.write("<a href=\"county.htm\">County</a>");
hide = 1;
} else {
document.write("");
hide = 0;
}}
</script>
<input type="button" onclick="Show()" value="Services" />
</BODY></HTML>

For some reason, Show isn't being called. The alert doesn't even show up. Though I'm under the impression the script should go above the first time it's used in the document.

View 1 Replies View Related

JQuery :: Collapsible Vertical Menu - How To Target Next Element

Sep 12, 2011

I have a following menu that I'd like to be collapsible.
<ul id="#menu-sidebar">
<li>Menu item 1
<ul><li>Menu item 1.1</li>
<ul></li>
<li>Menu item 2
<ul><li>Menu item 2.1</li>
</ul></li></ul>
This collapses and expands them, but of course all at same time.
$('#menu-sidebarli ul').hide();
$("#menu-sidebarli").click(function(){
$("#menu-sidebarli").toggle();
$(this).toggleClass("active");
});
I've been trying to experiment with the .next() trying to get the next ul li ul element but with little luck.
$('#menu-sidebar li ul').hide();
$("#menu-sidebar li").click(function(){
$("#menu-sidebar ul li").next().toggle();
$(this).toggleClass("active");

View 3 Replies View Related

JQuery :: Further Refinements To Filament Group Collapsible Plugin?

Jun 16, 2010

I started a thread here about the Filament Group's Collapsible Plugin, wherein I modified the plugin to hide any exposed content when an new header is clicked, but I wanted to make it even better, by expanding hidden content if a user arrives at a page via a link with a url fragment identifier. The 1st thing I needed to do was add IDs to all the header elements. I discovered that in Chrome, the page was rendering before the IDs got inserted, so to solve that I moved the code to a separate file that executes before the plugin. Here's that code ('fragment.js'):

Code:

$(function(){
$('h5.accordion').each(function(index) {
$(this).attr({
'id': 'faq-' + index

[code]...

This works fine if the link to the fragment is on a different page than the collapsible content, but if the link is on the same page, the collapse/expand events fail. I think it's because clicking a link with a url fragment doesn't send a server request -- it just fires off a 'scroll this page' instruction client-side. So even though the url in the address bar changes, any expanded content stays open, and the target doesn't expand.

I'm attaching a ZIP if anyone wants to look at this. Navigate to collapsibleemplatesfaqest.htm and click the 1st or second link -you'll be directed to collapsibleemplatesfaqindex.htm and the page will scroll to the correct item and expand it.Now try clicking the link at the top of index.htm (Test Link 1) or the one inside Details 3 (Test Link 2). The page will scroll, but any expanded content will remain so & the target won't expand.

View 1 Replies View Related

Collapsing Images On Click / Then Displaying Links

Nov 1, 2009

When someone clicks on an image here (URL...), the rest of the images collapse and become invisible.Also, there will be a "show other images" button which will then show the rest of the images.

View 4 Replies View Related

Collapsing Table Rows Based On Row Color?

Jun 21, 2011

Is there a way to collapse only certain colored rows? So far all the rows collapse...I was thinking I could put another if statement in the for loop, but is there a way to test for color?

Code:
<html>
<script type="text/javascript">
var rowVisible = true;
function toggleDisplay(tbl) {

[Code]...

View 9 Replies View Related

JQuery :: Collapsible Menu Not Working Correct In Internet Explore 8

Jul 29, 2010

I have writen(as you can see i am not a jQuery expert :P ) a small piece of code for a ul/li collapsible menu, all browsers do what i want but IE8 is not working propper.

jQuery("a.cat_w_sub").toggle(function(){
if (jQuery(this).next("ul").is(":hidden")) {
jQuery(this).next("ul").slideDown(100);
jQuery(this).addClass("cat_open");

[Code].....

I have used the jQuery ui accordion first but this wasn't work that well, so i switch to this piece of code

The bug/error: well if i click on the menu(which is closet at first) it doesn't open at first but once i click on it, it opens and closes.

View 7 Replies View Related

JQuery :: Expand A Collapsible Fieldset When User Hit Tab Button From Keyboard?

Nov 12, 2010

By using this tutorial Stylish Collapsible Fieldset using CSS3 and JQuery, I have created asp.net web form with collapsible fieldsets. When this web page/form loads all the fieldsets at that time they are collapsed/closed but when user clicks on any legend the fieldset becomes expand/open.

Now I want to add another feature that when user finishes entering data in the controls of first fieldset and he/she wants to move to the very next fieldset. Then he/she (currently in the last control (that may be a textbox or a dropdown list) of the previous fieldset) can open/expand ***only*** the very next fieldset by just hitting/pressing tab from the keyboard.

[Code]...

View 1 Replies View Related

ComboBox - New Option - Option With Popup Input To Add Option

Nov 19, 2010

I am searching a solution to change a ComboBox by popup I have found this script on the web. Is it also possible to select the newVendor just after adding? Is this script ok or are there better solutions?

<script type="text/javascript">
<!--
function message(value){
if(value=="newVendor"){// New Vendor is selected
var vendor = prompt("Vandor's Name","");
var elementSelect = document.getElementById('vendor');
try{
[Code]....

View 2 Replies View Related

JQuery :: Removing An Option From A Select Based On The Option Value?

Jun 21, 2010

I'm using the following code to remove an option from a select control based on a selection in a different select control and the option text in the select option that is being removed. The code works as I want it to, but I would prefer to use the option value for identifying the option to remove instead of using the option text. I've tried several different ways to do this, but can not find the proper syntax.

[Code]...

View 3 Replies View Related

Change The Image From One To Another On The Collapsible Div?

Apr 18, 2010

How do I change the image from one to another on the collapsible div? For example: when you click on the div the image changes from plus to minus and vice versa.

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Collapsible Message Panels</title>

[Code]...

View 4 Replies View Related

Change Image On Collapsible Div?

Apr 18, 2010

How do I change the image from one to another on the collapsible div?

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Collapsible Message Panels</title>

[Code]...

View 14 Replies View Related

Simple Collapsible Panel In JS?

Jun 25, 2009

get a code of simple panel collapsible DIV, with a plus minus symbols(image).

View 1 Replies View Related

Collapsible Content For Firefox?

Jan 23, 2005

I need a solution that will allow me to use link text in the header to raise an event that will push the content in the area below the header down as would a collapsible list type of construct. I want to display a login and registration fieldset, dynamic help, and validation response in the expanded area.

I have been searching high and low for DHTML or CSS solutions that will allow me to use collapsible content with both IE and Firefox. Not one of the many very well-known CSS gurus has any solution that I have discovered yet.

View 24 Replies View Related

Simple Solution To Collapsible Rows

Jul 4, 2006

I have been looking around for quite some time for a simple piece of code that allows rows to be collapsed in tables, so when you click on a link in the tbale the row beneath collapses. All i have found are very complex codes that i cant get to work or that dont work in both IE and FF.

View 6 Replies View Related

Collapsible Vertical Menu Script

Sep 7, 2005

I'm looking to implement a Collapsible vertical navigation script into my site - i'v searched the forums and other various sites and found scripts that where close to what i wanted to achieve but missing various elements.

I'v attached an image to this post to show you what I had in mind and hopefully someone can help me (hopefully using css and as little javascript as poss - or perhaps using DOM?)

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved