I'm trying to use jQuery validation to highlight the labels for my radio buttons only, and not the labels for my other inputs. I have a label for my radio button set called 'type'. I can't seem to get it to work!
$(document).ready(function(){
$("#healthForm").validate({
highlight: function(element, errorClass) {
$(element)....
This is a 2 part question:
1)
click on one of the demo dropdowns on this page. when you tab over to the next input, the text is selected/highlighted in firefox. how can i prevent this from happening?
2) bonus: can you review my code that is hosted on google and tell me what i can improve?
...
I'm using json2.js to create a JSON object which JQUERY posts to the Server. The object looks like:
[{"locationID":"16","locationDesc":"XXXX"}, {"locationID":"111","locationDesc":"XXXX"}, {"locationID":"12","locationDesc":"XXXX"}, {"locationID":"11","locationDesc":"XXXX"}]
Problem here is that XXXX sometimes contains quotes like "we'r...
What is the right way of doing both client side and server side validation using jQuery and CodeIgniter? I am using the jQuery form plugin for form submit. I would like to use jQuery validation plugin (http://docs.jquery.com/Plugins/Validation) for client side validation and CodeIgniter form validation on the server side. However the two...
I have a code that would call $.load() to get an HTML fragment. In the fragment there will be a list of images and a script that would do some calculation based on the list size. The fragment looks like
<div>
<ul>
<li><img .../></li>
<li><img .../></li>
...
</ul>
</div>
<script>
//... script to do calculation on the ...
Okay, I am really stuck here.
I have a table of tr's that have id's: #tr_xx
where xx is a number.
item is a number.
The if(... part makes sure that what follows is only executed once at the end of all the animations.
$('#tr_' + item + '>td').fadeOut('slow', function() {
if($('#tr_' + item + '>td:animated').length ...
In Javascript, I have a variable that is set to a block of text from a WYSIWYG editor.
I want to use JQUERY's EACH() to find span's with the class XXXX.
$( "span.foods" ).each( function() {});
But I want it to search in the variable=lookhere I have since I don't have access the the text in the WYSIWYG editor directly (CKEDITOR).
H...
I'd like to extract all the ISBNs on a dynamic web page that I can't feed through a Yahoo Pipe (the user has to log in to see the page). Is there a way to do that with jQuery? How?
Edit:
The structure:
Here's an example of what the HTML looks like on that page. There's a <table> that has a series of <tr> elements in them. A sample one...
Hi,
Is it possible to stop the automatic preventDefault() from applying in a simple Jquery toggle function?
$(".mydiv").toggle(
function () {
$(this).addClass("blue");
},
function () {
$(this).removeClass("blue");
}
);
The above prevents elements inside the div from responding normally to the click.
I...
$.each(3,function(i){
alert(i)
})
alert 0,1,2
how to do this using jquery?
thanks
...
Hey all,
I'm practicing Jquery and I've written this simple Jquery statement:
var someText = $("table tr td").text();
Should this not return all text of td elements found within tr's that are found within tables? How do I fix this? Currently when I run this, it says that table tr td is null, but I have a table on the page I'm testing...
the black div is used to panel,so it can not be droppable.
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewpo...
i using jquery and jquery-ui,
this is my code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta name="viewport" content="width=device-width, user-scalable=no">
</head>
<body>
<style type="text/css" media="screen">
</s...
My CMS system allow people to post some swf on the homepage,
however, sometime there is video which is included in swf, not two files swf+flv.
When the swf video load, it near used up the bandwidth and so the page seems not response for a while ...
Can I use jQuery to control all the swf in a page that they load after the others done or ...
Hey Everyone,
This maybe a very mundane question, but this is the first jQuery plugin that I write and I'm a bit fuzzy on understanding the scope rules in Javascript.
I'm trying to write an simple jQuery plugin that wraps around the Stack Overflow API. I'm starting off by trying to work with the Flair API.
I wanted to make the plugin...
Hello S-O.
I'm using jQuery 1.4 with jQuery History and trying to figure out why Firebug/Web Inspector are showing 2 XHR GET requests on each page load (double that amount when visiting my sites homepage (/ or /#).
e.g. Visit this (or any) page with Firebug enabled.
Here's the edited/relevant code (see full source): -
$(document).re...
i have tried load and hebrew didn't work for me so i changed my code to
$.ajax({
type: "post",
url: "process-tb.asp",
data: data,
success: function(msg)
(partial code)
not knowing that post and get is the problem for my hebrew querystring.
so know i can get my page to get the hebrew and english bu...
first see this post
i got this code
$('.yesno').click(function(){
$('.yesno').each(function(i, v){
$(v).removeClass('selected');
});
$(this).addClass('selected');
return false;
});
and html this
<a href="#">
<span class="Yes yesno">Yes</span>
</a>
<a href="#">
<span class="No yesno">No</span>
...
Hi Can somebody fill me in on JavaScript Testing Frameworks?
I'm working on a project now and as the JS (Mostly jQuery) libraries grow, it's getting more and more difficult to introduce change or refactor, because I have no way of guaranteeing the accuracy of the code without manually testing everything.
I don't really know anything a...
Hello,
I have recently jumped into the world of JQuery. I saw the methods find() and filter() but can not figure out the difference between the two.
What exactly is the difference between the two?
...