jquery

submitting a form using jquery's .validate function

hello, this is a simple question. I have a form that is being validated using jquery's .validate function. The problem is that validating only seems to work when I submit the form using: <input type='submit' /> However, I would like to use my own custom button using instead: <button type="submit">click to submit</button> .... or use...

jQuery - Trying to create an 'endless slideshow' of images

I'm trying to create an endless slideshow of images that does as follows: Slides the images across a window When the last image is reached, it begins from the start of the images Here is my current code: var direction = '-'; function doScroll() { $('#products ul').animate({left: direction + '500'}, 5000, function() { if...

jQuery event handlers always execute in order they were bound - any way around this?

It can be anoying that jQuery event handlers always execute in the order they were bound. For example: $('span').click(doStuff1()); $('span').click(doStuff2()); clicking on the span will cause doStuff1() to fire, followed by doStuff2(). At the time I bind doStuff2(), I would like the option to bind it before doStuff1(), but there doe...

IE6 and jQuery document.ready - I can't access DOM elements

I'll try to keep this brief but this is infuriating the hell out of me. :) I've got a javascript file that pre-processes json data into a bunch of drop down lists. It all works wonderfully except in IE6 (go on snigger, it's only to be expected huh?). Unfortunately it's for a web app that has about 60% IE6 users so it HAS to work. In IE...

getting the value of a textbox with jQuery

Hello, I have this html code <html> <head> <title>JQuery Problem 2</title> <script type="text/javascript" src="jquery-1.4.min.js"></script> <script type="text/javascript" src="problem2.js"></script> </head> <body> <div id="game"> <form onsubmit="return false"> <p> Guess: ...

jQuery animation bug: .slideToggle causes content to overlap during the animation in FF & IE, Safari is fine. What could cause this?

First of all here is a link to the dev site I am currently working with. It features the form fields that are being animated using .slideToggle() .slideUp() & .slideDown(). Link: http://dev.supply.net.nz/copper/index.php/site/talent/ The CMS is Expression engine, but that shouldn't matter in this case. Basically what you'll see happen...

how works $(function(){}); in jquery

Hi everyone, I like to know how works or what means(?) when you define a function in the selector in jquery like this. $(function(){code,code}) because with jquery-ui you can (or must.. I'm really new with this library) set accordion with this code $(function(){ // Accordion $("#accordion").accordion({ header: "h3" }); /...

Doing a find and replace of a span in jquery

Ok i have the following code in jquery. I want to do a find and replace in jquery, I want to find the first span and replace it with a variable. So my question is how would i go about finding the first span, and then find the second? <html> <head> <title>JQuery Problem 2</title> <script type="text/javascript" s...

fading divs in and out, depending on an "active" class

This is related to my previous question here. I want 4 divs (absolute with z-indexes) to start off as being invisible (faded out), and when a link is clicked, the related div fades in. When the same link is clicked, the related div fades out. When a different link is clicked, the first div fades out and the second div fades in. There ...

What jquery tooltip plugin should I use?

I've heard of Qtip, and it looks good for what I want to use. Is this the most common one? Are there any other jquery tooltip plugins that people recommend? I want to pop up a bubble with images and formatted text. ...

iPhoto album transition

Hi all, I am trying to implement the same scrolling effect in the apple iphoto album. Hope you have seen in apple iphoto that when we move the mouse over the album, the images inside it will be shown one by one. Anyone knows how this is implemented.? i am trying to implement the same in my HTML page. Please Help Thanks, Shibin ...

How to make single-multilevel convertible, keyborad accessible, non-javascript dependent (except IE), CSS sprite dropdown navigation?

I've to write css for a simple/ horizontal menu for a CMS and i've to write css as if client will add subpages to main page and subpages of of subpages I mean right now it's simple navigation no dropdown but in future it can single level dropdown or multilevel dropdown and if navigation will have dropdown then dropdown links should be ...

Display only HTML links jQuery

Hello, I have a url and I want to display only the html links or URLs using jQuery. Thanks Jean ...

jQuery Circle Navigation

I have a requirement to have a universe type menu, where there is a main item in the center, and "X" amount of items around it. (ie: sun with planets). I have searched high and low for an example, and all of the search results points to using css, but this requires manually figuring out the position of the items. How can I create a men...

jQuery - eq() seems to refer to a different element than index() - What gives? :/

Here's my code: UPDATED JS jQuery(document).ready(function() { var cookieName = 'activeMenus'; var openMenus = (jQuery.cookie(cookieName) == null) ? 0 : jQuery.cookie(cookieName).substring(1).split(','); var wookie = ''; jQuery('ul.menu li ul').css('display', 'none'); // Reopen all the menus from the cookie if (...

Manipulating <body> with jQuery? (Or figuring a better solution)

I'm trying to create a JS-script to make modifications to add a footer to HTML -documents on the fly. The idea is to append a div-element at the end of the document to contain the footer, and to provide a floating fixed footer, I also need to have all of the other content wrapped in a div, basically I need something like this: <html> <...

Position a Button at bottom right of a GridView cell.

I am dynamically adding an Edit button to each cell of a Template column in a GridView. I will have a list of people in each cell, and the Edit button should appear at the bottom right of each cell. How can I achieve this? I am more than willing to use jQuery. ...

Grabing the anchor from the LI whose ID is same as the cell's ID

Hi Guys, I have below is the html code for TD which gets appended after matching the IDs from below LI HTML code <td style="border-top-style: solid; border-right-style: solid; border-left-style: solid; border-bottom-style: solid" id="Communication"> Communication Science Course </td> <li id="CommunicationTooltip"><a href="#" t...

[jQuery] selection on condition

I'm trying and trying and can't make it working. I have a ul class="first" . From all the ul's "first" in the template I need to select only those containing ul class="second" and for the selected change h2 href to "#". Problem is that when I find this specific "first" with "second" I can change "second" parameters with no problems but i...

url in json, jqery ajax response

{"imgsrc":"http:\/\/192.168.1.181\/postcardthis\/facebook\/angel_wall.jpg","message":"asdf","friend":"Friend1","error_message":""} this my json, here imgsrc location seems dificult, two slahes. what to do to convert perfect url? ...