JQuery :: Target Top LI Level Individually?
Feb 22, 2010
Am having a fiddle with the following for a while now and am not getting anywhere - also not knowing if what i am trying is actually the best / fastest way... What i have is the following menu
<ul>
<li>Test</li>
<li>Test
[code].....
View 11 Replies
ADVERTISEMENT
May 12, 2010
Trying to get this to work individually with each individual instance on the page (usually 5-10 questions on each page)Right now it adds the class to every instance of the div that has the answerCorrect class. need the link to only turn on the specific answer associated with it.
<script type="text/javascript">
$(document).ready(function(){
$(".showAnswer").click(function(){
[code]....
View 3 Replies
View Related
Jul 15, 2009
I have just started out in jquery and thought it would be cool to add some effects to my football clubs site.
I have a players page with a list of players. In the past each player link would open a new individual profile page. This was not ideal.
Now i want to create a list of players names that show a small bio below their names when their link is clicked.
I have created some code but it just shows the bio of all players when a link is clicked. There are lots of links so repeating all the code with unique id's i believe is not the best solution.[code]...
View 1 Replies
View Related
Jan 7, 2009
I am trying to turn a single level flyout menu into a multi level one.
It uses a dt for the title, and a ul within the dd for the menu items. The dd opens to the right of the dt.
The problem is that the second level menu (a dl within an li within another dl) [URL] - flyout4 & subflyout5.
The z-index is increased each time. I just can't figure why the area is limited.
javascript, css & html follow -
Code JavaScript:
/** FLYOUT = vertical dropdown **/
var Flyout = {
DDSPEED:10,
[Code].....
View 1 Replies
View Related
May 9, 2011
Is it possible to use Colorbox to individually load the larger versions of images?I want to assign their default of rel="example1" to various images on the same page, but have them display individually rather than in a linked gallery.
View 2 Replies
View Related
Mar 20, 2010
I have a site which requires the user to upload multiple images at once. Using jQuery I have set it up so that the user can select individuals individually (using the file browser) and then upload them all at the same time bty clicking 'Upload'. However, this is not really good enough...
What I need to happen is that when the user browses their machine to select their images, they are able to select multiple images through CTRL+click. At the minute they can only select one image at a time.
As I already have the upload process working perfectly, I would prefer that I was able to keep this intact and simply add some javascript which allowed multiple images to be selected by the file browser at the same time. I would also prefer, if possible, not to use flash.
View 1 Replies
View Related
May 19, 2011
i want to submit form data from the popup window, close the popup, and load in the main window. problem is, it always opens a new 'tab'. i'm using google chrome, i didn't think to try this in
in the <head> of the 'main' window:
<script language='javascript' type='text/javascript'>
window.name='main';
</script>
[Code]....
View 4 Replies
View Related
Mar 24, 2011
I am using the following javascript on the target page to open it as top location from within an iframe, which is working ok.
<script type="text/javascript">
if(self!=top) {
top.location.href=location.href
}
</script>
However my problem occurs when the user uses the browsers back arrow to return to the previous page, the script executes again returning them once more to the page they have come from. Is anyone aware of a work around to this problem as it would seem there isn't one? perhaps even a better solution for opening the target page from the iframe as top location. This is really causing confusion for users, and I really need to get the issue fixed.
View 2 Replies
View Related
Sep 21, 2011
If I wanted just the first level of ancestors inside a div what selector would I use?
<div>get me</div>
<div>get me</div>
<div>get me<div>don't get me</div></div>
<div>get me</div>
View 2 Replies
View Related
Feb 4, 2011
I have been searching around to see if it is possible to have a 5 level jQuery Cascading dropdown, so far I have 3 levels working but 4 and 5 will not.I have searched around and all I have found are only 3 level jQuery Cascading dropdown.
View 2 Replies
View Related
Jun 14, 2011
i want to collapse all level at load in this site : [URL]
View 1 Replies
View Related
Jan 6, 2010
I'm grabbing an XML file with jQuery like this:
$
document
.ready
[code]....
View 8 Replies
View Related
Apr 21, 2009
I want to use this menu but i have so many main items that there are 2 rows. The first row is always on top. How can i get the second level menu to be on top of the fisrt item menu-item1 menu-item2 menu-item3 menu-item4 menu-item5 menu-item6 menu-item7 menu-item8 menu-item9
View 2 Replies
View Related
Feb 13, 2010
Given the following markup
<div id="menu">
<ul>
<li><a id="home" href="#">Home</a></li>
<li>
<a id="about" href="#">About</a>
<div>
About sub menu
</div></li><li>
<a id="products" href="#">Products</a>
<div><h2>Books</h2>
<ul><li>ColdFusion</li>
<li>jQuery</li>
<li>CSS</li>
<li>HTML</li>
<li>Groovy</li>
<li>Hibernate</li> .....
How can I grab only the 1st level children of my node? I want direct decendents of menu only. My code below is grabbing all <li> which is going to be a problem.
(function($){
$.fn.extend({
myplugin: function(options){
return this.each(function(){
// the object we are working with
var obj = $(this);
// get a list of menu items
var menuItems = $('li',obj);
});
}});
})(jQuery);
View 2 Replies
View Related
Aug 7, 2011
I am new to JQeury and facing issue to Check/Uncheck all checkboxesatnth level.
View 1 Replies
View Related
Aug 7, 2011
facing issue to check/uncheck checkboxes at nth level.
View 1 Replies
View Related
Dec 2, 2011
How can I use jQuery to add a css class to the first level of <li> tags under a <ul> tag? I have this so far:
$("ul.menu li:first").addClass("myClass");
But this only adds the "myClass" to the first <li>, I'd like the set of <li> tags directly underneath to have the same css class. I have a menu structure and it's only the first set
of <li> tags I'm interested in.
View 2 Replies
View Related
Jan 18, 2011
in a simple javascript I do so:
var secondFrame = parent.frames["first-frame"].frames["second-frame"].document;
how to do this using jquery?
View 1 Replies
View Related
Sep 23, 2011
The functionality I want is demostrated on: [url]
The first row of thumbnails does what I want. I have the couple function:
And the HTML source is:
But this means the A elements have to be a direct descendant of thumbnails. I would like all A descendants to be overridden, so I can do something like:
<div id="thumbnails2">
Is this possible?
View 2 Replies
View Related
May 11, 2011
For one project i am suing jdMenu to power up the drop down menu system. I am interested for the second level of the menu to position the <ul> at 50% on the parent <li>, like on[URL]...
Using css this is not possible since the ul has the size in em and the parent li have the size in %. So have to use a different method...
View 1 Replies
View Related
Apr 24, 2009
I am trying to create a multi level query,My only problem is that i do not know how i can visually develop it.i would like to have a visual aspect like this one.
<a href="http://yfrog.com/bfpicture6up">http://yfrog.com/bfpicture6up</a>
View 1 Replies
View Related
Jun 11, 2009
Given the following structure:
<div id="section_list">
<ul>
<li></li>
<li>
[Code].....
Not only does it look hacky, but it's giving me obviously bad results. To complicate things further, I'm using MPTT for my tree data, so sortable's serialize isn't much help, unfortunately. I originally thought I might figure out the parent_id, lft, and rght values upon sort but that would entail storing all that data somewhere in the DOM. I then realized that, if I can just get the number of positions moved, I could update the DB with that information.
View 2 Replies
View Related
Jun 23, 2009
I'm in trouble implementing superfish in a website project. My problem is: I have a category based menu item that has two sub-levels set to display horizontally. I hover the first menu item and the first sub- level shows. Then I click the first sub-level and both it and its parent-item get highlighted and stay visible.Then I do the same to the sub-level below these but it doesn't work. This second sub-level gets the right class ('current') but the first level loses its 'current-cat-parent sfHover sf-breadcrumb' classes causing all levels to disappear.
View 3 Replies
View Related
Feb 7, 2011
Can anyone please tell me how to select only top level list items?[code]...
The answer I'm looking for is 3, since that is how many main listitems there are. How can I target only these main items?[code]...
View 2 Replies
View Related
Apr 27, 2010
I've spent the last few hours trying to make the jump from prototype to jquery. I'm trying to use jQuery's crossbrowser event handling but I can't seem to register the event. I've tried lots of combinations and permutations that I've seen on the web but nothing seems to be working so I must be missing something.
$(document).ready(function() {
$(document).mousedown(makeDomPath);
});
function makeDomPath(e)
[Code]....
and none of them fired. The goal here is to have a single event handler that catches all the mousedown events in the page.
View 1 Replies
View Related
Aug 19, 2010
I am trying to build this page where there are 3 levels of icons/contents. When user hovers on 1st level, they see the 2nd level. They now hovers on the second level and suppossed to get the 3rd levels of contents.My 1st/2nd levels worked fine.But when I added the 3rd level, could not make them to work.Problems: 1. the 2nd levels show up with multiple 3rd level items - suppossed to be all hidden.2. When I hover over the 2nd level - they are like frozen if the 3rd level is displayed. After hiding all the 3rd levels by doing mouseout - when I hover over a 2nd level, 3rd level shows up but when I move over to the next (2nd level), the corresponding 3rd level shows up without hiding the previous one. So again - displays multiple 3rd level items
var cr_event = $('#imgCE');
var info_center = $('#imgIC');
var tab_events = $('#tabCreateEvent');
[code]....
View 3 Replies
View Related