jquery-ui-accordion

Title of tabs appear on the right side of vertical accordion

Deadly 提交于 2019-12-24 18:36:28
问题 What's going on? : The accordion is working properly, but the tabs show up on the right side of the accordion. jQuery $(document).ready(function(){ $(".accordion .title").click(function(){ $(this).next(".accordion .details").slideToggle(500) }).next().hide(); }); CSS : Hoverbox .hoverbox { cursor: default; list-style: none; } .hoverbox a { padding-top: 5px; cursor: default; text-decoration: none; color: black; } .hoverbox a .preview { display: none; } .hoverbox a:hover .preview { display:

jQuery ui Accordion degrades in IE6 or IE7, but is working in IE8

依然范特西╮ 提交于 2019-12-24 10:50:06
问题 There are two accordions on my page, with custom accordion CSS in another file, differentiated by class and ID names so as not to conflict with each other. The accordions don't show up at all, they just degrade to showing all the content at once, as if all the accordion styling is gone. The accordions are both called around the middle of the page, and there's no difference if they are loaded with $(document).ready. What should I check for in the CSS files? There are no inline-block uses. I am

Collapse all and still have the first accordion opened by default

元气小坏坏 提交于 2019-12-23 12:46:47
问题 I was trying to work with the jquery accordion. I'm using the jsfiddle which is in this question : jQuery UI Accordion Expand/Collapse All <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Kaneka Extranet CustomerDocs</title> <link href="/Content/screen.css" rel="stylesheet"/> <link href="/Content/fonts.css" rel="stylesheet"/> <script src="/Scripts/modernizr-2.6.2.js"></script> <script src="/Scripts/jquery-1.10

How to cancel change event for accordion controls

本小妞迷上赌 提交于 2019-12-23 08:46:56
问题 $("#accordion").accordion({ change: function (event, ui) { alert('event have to be changed') }, changestart: function (event, ui) { return false; } }); Is it possible to cancel the change event? 回答1: I am not sure about change but for other events in jqueryui returning false cancels the event. 回答2: stopPropagation() is the key to stopping a jQueryUI action from processing, but it must be interrupted BEFORE the changestart event. For example, when the header item is actually clicked. If this

How to set nothing on el or tagname to work with jquery ui accordion

老子叫甜甜 提交于 2019-12-22 08:37:32
问题 Structure of jQueryUI's Accordion is something like this, <h2>title</h2><div>content</div> for each item. What I am going to do is create accordion inside of my backbone view through looping, but backbone create div tag for each item so I have html code like this <div><h2>title</h2><div>content</div></div> This makes jQuery Accordion control does not work correctly, collapse and expand is not working. I think this can be solved if I can set nothing on el or tagname, but I cannot find out. Is

heightStyle: “fill” is not working for accordion in Jquery

眉间皱痕 提交于 2019-12-22 07:59:21
问题 - With the change in dimension of container I'm able to customize width that is defined in #backlogEpic i.e 526px but height is not customizing . To fill the vertical space allocated by its container,i have set the heightStyle option to "fill" but still its not working out. Its taking is default height using 'auto'. How can i customize my height.If you see in image ,expanded panel is going out of container. html:- <div id="backlogEpic" class="ui-widget-content"> <div id="backlogAccordion"> <-

jQuery UI: TypeError: $(…).accordion is not a function

£可爱£侵袭症+ 提交于 2019-12-21 07:22:16
问题 For some reason the jQuery UI Accordion does not work. I keep getting this error: TypeError: $(...).accordion is not a function What am i doing wrong? Based on other answers on this site on similar topics, i think it has something to do with the included files. My header includes are: <!-- Mobile Specific Metas --> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <!-- CSS --> <link rel="stylesheet" href="<?php echo base_url(); ?>css/base_con.css"> <link

jQuery UI: TypeError: $(…).accordion is not a function

邮差的信 提交于 2019-12-21 07:21:39
问题 For some reason the jQuery UI Accordion does not work. I keep getting this error: TypeError: $(...).accordion is not a function What am i doing wrong? Based on other answers on this site on similar topics, i think it has something to do with the included files. My header includes are: <!-- Mobile Specific Metas --> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <!-- CSS --> <link rel="stylesheet" href="<?php echo base_url(); ?>css/base_con.css"> <link

Fixing vertical jump at end of jQuery slideDown animation

亡梦爱人 提交于 2019-12-21 03:43:05
问题 I am new to Jquery but have written a simple vertical accordion. It seems to to the job I require, but at the end of the slide down there is a visible jerk. If anyone could look at it and suggest a solution, it will stop me pulling any more of my hair out! Here is a a link to my test page (all my code [css, js etc.] is in one file for ease) : Vertical Accordion 回答1: In your custom code, I got rid of the 'jump' by making a small change in the CSS and specifying the height of the p tags within

Putting icon instead of “ + ” or “ - ” in an accordian menu.js file

怎甘沉沦 提交于 2019-12-20 06:05:15
问题 I am making an accordian menu. I just found this link http://jsfiddle.net/zM5Vj/ , and it is almost similar to the accordian menu I have made. In the code, where there is if($(this).text() == "-") { $(this).text("+"); } else { $('#accordion .opener').text("+"); $(this).text("-"); } }); If insted of "+" and "-", i want to put icons "~/Image/iconplus.gif" and "~/Image/iconminus.gif". How do i do so? I have tried <img src="..."/> But still it is of no use. Please can anyone help? Thanks in