This adds the class to a li. When another li is clicked it also adds the class current. But now i have two current. You'll notice below im trying to remove the class current from the li which was initially current.
var
$tabs = $('.promo-tabs li'),
$panes = $('.promo-panes > div');
$tabs.click(function(){
$(this).addClass('current...
Hi
I am trying to do a google.com like fade in (Cept i want to fade out text)
<script src="http://code.jquery.com/jquery-latest.min.js"></script>
<script>
$(document).ready(function() {
$("html").mousemove(function () {
$("p").fadeOut("slow");
});
});
</script>
With that code, my fade out gets automatically ...
I'm using jquery validation (http://docs.jquery.com/Plugins/Validation) like so:
var $__field = $("#selector");
if ($__field.is(":visible")) {
$__field.rules('add', { required: true });
$__field.rules('add', { number: true });
}
If the user enters a number without a leading zero, eg .5 then jquery vali...
I am trying to select all input fields on a form (except buttons and checkboxes).
I have got as far as to select all the form input elements on a form with id "myform", but I dont know how to exclude buttons and checkbox items. Does anyone know how to do this?
this is what I have so far:
$("#myform :input")
How do I "filter out" but...
Hey, I was wondering if setting an object equal to $.extend(), but setting the target to the same object is redundant?
setOptions(options = $.extend({
classPrefix: 'imgareaselect',
movable: true,
resizable: true,
parent: 'body',
onInit: function () {},
onSelectStart: function () {},
...
Hi All
I have a php array containing the mysql values of checkboxes, which has been selected previously. I am trying to do an edit page of sorts which will show the already selected checkboxes, but seem to be having issues with it. I've tried different ways but can't seem to get it working.
Here's my php array of previously selected ch...
I have a unique issue -
I am designing a web application that creates widgets that a user can then embed in their own page (blog posts, mostly). I want them to just have to embed one line, so I just had that line be an include statement, to pull a Javascript off my server.
The problem is, I am building the widget code using jQuery, an...
First let me thank all of you for your amazing efforts and help thus far. Now to the question.
I have five checkboxes and at least one of the five needs to be checked to validate as required.
I have seen a few methods of how to do this but I can't seem to make any of them work.
Solve One
Solve Two
Now I am using both the validate pl...
If I have text like this;
<p> </p>
<p>this is the real text</p>
<p> </p>
<p>more</p>
What I need is a piece of jQuery that will replace the first instance only of <p> </p> with ''.
So the result after the call should be;
<p>this is the real text</p>
<p> </p>
<p>more</p>
But if the first line is not <p> </p...
I'm using jquery Cycle to create a featured content slider. In my pager I have an image from each post and a link to the permalink. I can't link to the page, but I hope this image will give an idea of what I am doing:
My problem is that when I click the permalinks in the right nav, they do not open. The links are formed properly and ...
Are Grails and Jquery tightly coupled ? If Yes , Are GWT and Grails tightly coupled ? Also what is the best UI framework for Grails in terms of low CPU utilization and best rendering of UI.
...
As some background I prefer the flexibility and benefits that ASP.NET MVC gives me, and have been building in MVC since its release. But the new project I am about to start requires a complex calendar / scheduler control - and none of the jQuery alternatives meet all the requirements.
This has led me to the Telerik Radtools Scheduler, w...
Hi, I'm trying to use jQuery to change some styling on my page. The page is made dynamically by executing another JavaScript file.
Right now I have
$(window).load(function(){
$('p').css('font','green');
});
Which does nothing.
$(document).ready(function() will change the static part of the page, but not the generated part.
If ...
Hi Eric,
I was using simple module jquery plugins, its great but I have one small issues regarding this.
I want to close the current module window and open same after executing some ajax, but it does close and open.
I used the following code.
<script language="javascript" type="text/javascript" >
jQuery(document).ready(function()
...
I have the following at html code
<a class="toolbar" onclick="javascript: submitbutton('items')" href="#">
Now i want that in jquery i convert it to
<a class="toolbar" href="javascript:history.go(-1)">
Any ideas
...
TLDR: I am just starting to look into Jquery Flot have used it before but very basically. Was wondering is it possible to reshape the Jquery Flot graph or is it hardcoded to be square.
Details: I am looking to create a circle if that is not physically possible. Is there a way I could go about combining 2-4 graphs for example to make a...
So, I have a particularly unique goal I wish to achieve with CSS, HTML and jQuery. Basically, I have a page element that when I mouse over it, I want scrolling to be disabled. I am currently achieving this by setting the body's overflow property to "hidden." However, the disappearing scrollbars means that content is shifting to the right...
How to add cellspacing="0" if it's not available for any <table> using jquery?
and if it's available and it has any other value than ="0" then want to convert it to ="0"
...
Hi,
I'm using Catalyst::View::JSON and
Catalyst::TraitFor::Controller::jQuery::jqGrid to retrieve JSON data
to front page. Below is the code concerned (copy much partially from
Catalyst::TraitFor::Controller::jQuery::jqGrid example):
package UW::Controller::Site;
use utf8;
use Moose;
use namespace::autoclean;
BEGIN {extends 'C...
I've used jQuery's ajaxSend and ajaxStop to show a spinner whenever ajax requests are active. It works except when some of my plugins abort their ajax requests, ajaxStop does not trigger and will not trigger until after the page is refreshed. It seems like the aborted request still counts to jQuery.
Can I make ajaxStop trigger or is ther...