Basically what I need to do is run through a series of checkbox if it is checked I need to submit its value using ajax. Now I can't seem to find a way to run through each checkbox one at a time. Here's the code on my page.
$(document).ready(function(){
$('#submit').click(function(){
});
});
<?php
/**
* Include vB core.
*/
require_o...
So this should be a relativly easy thing for most people but I'm having trouble with it. I'm using the jquery validate plugin and would like to return a random vaule on success. Right now I'm trying to use.
var success_message = new Array (); success_message[0] = "Good!";
success_message[1] = "Ok!";
success_message[2] = ...
On my HTML page, I have:
4 images sitting in a row, and
1 div sitting immediately underneath - collapsed.
Depending on which image the user clicks, I would like to load the corresponding external page content into that DIV (using ajaxpage.js?).
When the content gets loaded into the DIV, the DIV should toggle open with a sliding action...
Is there a way I can display the result and then have it fade away after about 10 seconds or something using JQuery?
Here is the code.
function stop(){
$.ajax({
type: "GET",
url: "http://update.php",
data: "do=getSTOP",
cache: false,
async: false,
success: function(result) {
...
I have a function that dynamically creates links for a photo gallery. The function also produces a larger image as a background image of a div when and thumbnail is clicked on. What I want to do is have a third event, where if the user clicks the enlarged image in the div, the jQuery Fancybox loads an even bigger version of the image bei...
Hi,
I have a problem on this code
$(document).ready(function(){
$('.nm_close').click(function(){
$('.map_pops').css('display','none');
});
});
What I want is this bubble popup will fades out when it closes. Thank you!
...
Well, I can't seem to figure out why this isn't working. (there is a description of the error at the bottom)
<script type="text/javascript">
$(document).ready(function(){
$('#submit').click(function(){
$('input[type=checkbox]:checked').each(function(){
ajax=$.ajax({
type: "POST",
url: "rollcall_submitvote.php",
data: '...
There seems to be a problem in FF when you use jquery.validty.js to validate my forms. If I'm validating a checkbox or radio btn the X image doesn't show up. It works in safari but I haven't tried IE. Has anyone had this problem?
<html>
<head>
<title>Simple</title>
<link type="text/css" rel="Stylesheet" href="css/jquery.validity...
Hi,
I haven't been able to find a good answer to this issue. I'm trying to get a better handle on some nicer looking/acting form elements with JQuery. Here's the code I'm using so far:
$(document).ready(function() {
$('.input').addClass('inputOut clear'); // Grey out text initially, default bg
$('.input').each(functio...
Hi all,
I'm fairly new to JQuery and Javascript in general. I don't think I'm trying to do anything too tricky, but this has me stumped.
I have a series of links on my page which trigger a certain behaviour within the page when clicked. Once they are clicked again, they are supposed to jump to another page, but, using my current code, ...
This is for a thumbnail - a simple opacity set then hover function.
What am I missing? This is working in most browsers (including IE7) but in IE8 I get nothing.
<script type="text/javascript">
$(function() {
// set opacity on page load
$(".image-thumb").css("opacity", "0.6");
// on mouse over
$(".im...
I have multiple jquery files in my project. I am using facebox using jquery1.4.2 but i need prototype and scriptacolous scripts too. I have used jQuery.noconflict(); in my code but its not working.
this is the url http://mlep.com/~avalon/wordpress/ideas-and-insights/case-studies/.
...
Is it possible using some sort of client side code to detect cut and paste?
The only solution I can think of is to constantly get the text length and if it changes drastically over a certain period, then assume text was pasted.
...
I have successfully incorporated this scrollable tab control to my website:
http://jqueryfordesigners.com/demo/coda-slider.html
I would like to use this at the top of the page, and once again in the middle of the page. However, this solution seems to only allow one instance of it per page.
How do I use it in multiple places on a singl...
Hey guys,
I'm a jQuery newb and I've been trying to create a custom slideshow widget for a page that I'm developing. I've been able to get all the basic bits working (autoplay, pause, captions) but I've hit a roadblock with the pagination (allows you to pick the slide). For whatever reason once I try to select a slide the image and the c...
Is there a way I can pass a PHP variable from a PHP page to a JQuery page and back to a PHP page?
...
Hi!
I have buttons and they change colors when they are hovered. But I am trying to make a button remain with a changed color after being hovered until another button is hovered. I read a post and it said to use a:focus but this is an implementation that works only when clicking a button, not with mouseover thing.
Any help appreciated....
Trying to set this label to red
I've got the following class:
.redErrorText
{
color: #b11010;
}
The following label:
<label for="txtNumber" id="lblBlue">Number 1</label>
And then this code runs to try and set the label to red:
var blueLabel = "#lblBlue";
$(blueLabel).addClass("redErrorText");
I can't figure out what I coul...
I want to highlight text in a specific position. Something like this: highlight with jquery, but it only highlights the word in the position n.
For instance, highlight only the second hello in the text "hello, hello, hello"
Thank you
...
I have a form that is broken into several screens. Although it is a single form, because of its size I am using jQuery to visually break it into several smaller sections.
There is a simple link to navigate to the "next section" which triggers a div show/hide.
I would like to validate each section as the user proceeds, rather than on su...