Ajax is asynchronous. The alert in the ajax post will only be executed when
the ajax request is completed. This can happen after the other part of your
code run.
You can use the async option and set to false;
http://api.jquery.com/jQuery.ajax/
On Thu, Feb 11, 2010 at 10:35, Julien wrote:
> Hi,
Email der Rezension
> kann nicht den Wert 'undefined'
>speichern.
>
>
>
> some junk here
>
>
>
>
> So how exactly would I extract that from a string?
>
&
Sometimes we really need other people to look our codes or test our
products. Or we need to first "empty our cup" to have it full again.
2010/1/9 youradds
> OMG you lifesaver!!! HOW DID I MISS THAT!
>
> Just made the change, and works perfectly in IE 6 and 7 now - thanks
> so much!
>
>
> On
And you can simply use .text() method. This will return you only the text
inside your selected element.
Do you also need tips on getting the child elements on that div?
--
At,
Leo Balter
http://leobalter.net
Blog técnico: http://blog.leobalter.net
Vidas,
I got stuck on what you did in the 'obj.html(obj.children().html());' Isn't
it a redundancy or I'm missing something?
2010/1/1 Šime Vidas
>
> Better yet, make a function that you can reuse:
>
> function contentWidth(obj) {
>var width = obj.wrapInner("").children().width();
>obj
already tried to reclone your git rep paste?
Maybe you can get better answers in jQuery Dev group.
2009/12/26 alenoosh
> Hi
>
> I'm trying to install jquery in lenny , I have sun-java6-jre , sun-
> java6-bin and sun-java6-plugin and sun-java6-jdk installed , but when
> I run 'make' in shell to
Use the callback of load function
$('#transactions').hide().load(url, function(){
$('#transactions ul li a').bind('click tap', exp_iphone_get_trans);
}).fadeIn();
On Sat, Dec 26, 2009 at 19:29, mrtoner wrote:
> Okay, the answer is probably obvious to you that are old hands at
> jQuery, but
The firefox doesn`t allow you to have a div inside a label. Checkout the
firebug and see how the firefox close de label tag before your div. So your
label will be empty.
On Thu, Dec 24, 2009 at 14:12, turnavies wrote:
> Hi,
>
> I'm working on a login system in CodeIgniter, where you select your
>
Maybe the asp.Net ajax is still working and changing elements when the DOM
is ready in the page.
I would encourage you to get rid of your asp.net ajax too. It's a nightmare
of issues.
2009/12/23 Šime Vidas
> Well, it actually gets even shorter... you can combine the two
> selectors into one
First of all: an Id is meant to be unique, so you can start with
$('#search_button') selector and test it all again.
2009/12/23 123gotoandplay
> hi,
>
> have simple search form which works in list.php
>
> Now i am 'loading' list.php in #content and now the search function
> doesn't work.
>
> w
Try the .one( event type, callback fn ) method
2009/12/23 paul s
> Hi folks,
>
> I'm having a problem using:
>
> jQuery(window).bind("focus", function(event) { alert("test"); });
>
> in Firefox.
>
> I'd expect a single alert box when I focus on the window. However in
> Firefox I get 4 alert boxe
Nah, make it sexier, use parenteses (tip from the new John Resig's ebook):
( var $ = window.jQuery;
$("#CollapseExpandTd").click(
function() {
$("#TreeviewTd").toggle();
$("#MenuBarTd").toggle();
});
);
$ will be a local variable and unicorns will come to see the magic runni
Pastebin (http://pastebin.com) as the best reedit option and
http://jsbin.com as the best "as working" example option.
2009/12/22 aquaone
> Providing a link to a live site or using a pastebin type site (e.g.
> http://jsbin.com/) is likely your best bet.
>
> aquaone
>
>
> On Tue, Dec 22, 2009 at
first you forgot a "{" in the first cycle, maybe you already noticed this.
Second, trying to help you: why don't you try to use for both slideshows a
delay of 3000ms but a timeout of 3 secs in the first and 6 secs in the other
one.
This make the right magic for you?
2009/12/23 Rick Faircloth
>
then
.errorClass{
background-color:red;
}
On Thu, Dec 17, 2009 at 14:27, Leonardo K wrote:
> Something like this:
>
> $(".selector").validate({
> highlight: function(element, errorClass) {
> $(element).addClass(errorClass);
> $(e
Something like this:
$(".selector").validate({
highlight: function(element, errorClass) {
$(element).addClass(errorClass);
$(element.form).find("label[for=" + element.id +
"]").addClass(errorClass);
$(element).closest('fieldset').addClass(errorClass);
},
unhighl
I download your code and it's working fine.
On Tue, Dec 15, 2009 at 08:48, Givan wrote:
> Hi, I found a bug within the validation plugin
> I have a form and I need to click the submit button twice to submit
> the form.
> It seems that on the first click validates and only on the second
> click w
Something like this:
$(form).validate({
rules:{
announce: {
required: function(element) {
var value = $("input[name='blog-entry']").val();
if ( val == 'publication' || val == 'post' ){
return true;
}e
m
},
On Mon, Dec 14, 2009 at 20:06, Gian-ava wrote:
>
> Leonardo,
>
> I see. Firebug' error console says:
>
> Error: missing ) after argument list
> Line: 8, Column: 12
> Source Code:
>}
>
> Strange, since I don't think this is correct.
The debug:true only work with firebug (extension for firefox). The messages
will appear in console
On Mon, Dec 14, 2009 at 11:50, Gian-ava wrote:
>
> Leonardo, thanks for your interest in my case.
>
> I've tried out the code with the debug option. I just don't know wha
$('#pageCount').text().replace(')','').replace('(','')
On Mon, Dec 14, 2009 at 10:41, tony stamp wrote:
>
> I have a simple span element with the id of pageCount, which has a value of
> "(5)", for example. I am attempting to get the just number value without
> the
> brackets, or some way of adju
function togglePassFail(radioName) {
var buttonGrp = document.getElementsByName(radioName);
var radioValue = $(buttonGrp).filter(':checked').val();
var detailDiv = $(buttonGrp).eq(0).parent().next();
if ( radioValue == 'p' ){
detailDiv.hide();
}else{
detailDiv.sh
You can use the errorLabelContainer to put all your label in a div, and the
plugin will handle this.
errorLabelContainer: "#messageBox",
On Sun, Dec 13, 2009 at 09:33, Droy wrote:
> Greetings! I had a small problem: all errors received in plugin
> validation I take out in div the block with id
7;#actionform').hide();
$('#content').append("Thanks! Your request
has been sent."
}
});
},
errorPlacement: function(error, element) {
error.insertAfter(".rowElem");
}
});
On Sun, Dec 13, 2009 at 20:52, Gian-ava wrote:
>
This should work:
$(document).ready(function(){
$('#actionform').validate({
submitHandler: function(form) {
$(form).ajaxSubmit({
success: function() {
$('#actionform').hide();
$('#content').append("Thanks! Yo
Maybe you have a style that override the float right property.
2009/12/10 Łukasz Podolak
> Hey,
>
> I have one css clas, that looks like this:
>
> .floatsToRight {
>float: right;
> }
>
> my jquery code is doing the following:
> $('ul.gallery li:not([class="main"]) div.title:even').addCla
You can set the width with css.
On Wed, Dec 9, 2009 at 23:48, fachhoch wrote:
>
> My page got a very big drop down list attached is the image
> http://old.nabble.com/file/p26720940/programs-drop-down.png
>
> I need suggestions in reducing the width of this drop down , I cannot
> replace the text
I tested here and worked:
http://jsbin.com/ivude
On Wed, Dec 2, 2009 at 13:32, mickey wrote:
> Anyone?
>
you can create your own method using the addMethod (
http://docs.jquery.com/Plugins/Validation/Validator/addMethod)
On Tue, Dec 1, 2009 at 11:50, tom wrote:
> I'm using the jquery.validation plugin by Jörn Zaefferer and I was
> wondering whether there's a easy way to trim form elements before th
$("h4").click(function(){
$(this).next('div').slideToogle();
}).trigger('click');
On Thu, Nov 19, 2009 at 04:11, srikanthv wrote:
> I have to implement slide on each question. by default question
> will be collapse. when I click on on question it should be slide down
> (expand). How can
You dont need to submit again inside the submitHandler function.
$("form#send_gb").validate({
submitHandler: function(form) {
var gb_post = $("#gb_post").attr("value");
var userid = $("#userid").attr("value");
var ownerid = $("#ownerid").attr("value");
$.ajax({
Look the live event: http://docs.jquery.com/Events/live#typefn
On Sat, Nov 7, 2009 at 10:49, ndes wrote:
> Hi! I was wondering if i made something wrong or this dont works in
> general. I have a drop down list that "onChange" loads some data an
> pops a list of img+text
>
> $('#selectDisplay').c
Actually your code is working in IE for me. The problem is that your code is
generating empty LI's.
If you click to scroll images to the right i can see all the images in IE.
There a empty space between the images because the empty LI's.
On Tue, Nov 3, 2009 at 13:26, jeremybass_offset wrote:
> :
Perhaps the problem is that submitHandler function has an argument.
submitHandler: function(*form*) {
}
On Wed, Oct 28, 2009 at 12:52, StephenJacob wrote:
>
> Thanks Leonardo, I've tried to implement AjaxSubmit and the
> Jquery.Post but have had no luck. The form keeps submitt
You could do this too:
var $buttons = $('.button');
$buttons.click(function(){
$buttons.not(this).css('background-color', 'green');
});
On Wed, Oct 28, 2009 at 05:39, alexpls wrote:
>
> I'm a beginner to programming, so please bear with me, I might be
> missing something really obvious here
, StephenJacob wrote:
>
> Leonardo, I've been looking into the submitHandler option but i'm
> having problems getting it to work correctly. Here is a sample of the
> code i'm testing.
>
> $("#signupForm").validate({
>
>rules: {
>
Look the submitHandler option:
http://docs.jquery.com/Plugins/Validation/validate#toptions
On Tue, Oct 27, 2009 at 15:02, StephenJacob wrote:
>
> I'm trying to create a contact form using Jquery Validation and Ajax
> Submit. I'm having a problem figuring out the best way to submit the
> results
$('#menu li.top > a').css('background-color', 'tan');
The selector is just like CSS.
On Sun, Oct 25, 2009 at 10:25, breadwild wrote:
>
> Hello,
>
> I'm building a nested menu where I want to add background colors only
> to top menu items. I can't change the generated code, so I have to
> live w
te: {required: "#sameAsBusinessAddress
> [checked='false']"},
>
> restitutionzipcode: {required: "#sameAsBusinessAddress
> [checked='false']"},
>
> company:true
> }
>
>});
>
>$.validator.addMethod( "company&qu
U need set the rules for your validation:
frmSubmittal.validate({
debug: false,
focusCleanup: false,
focusInvalid: false,
onfocusout: false,
onkeyup: false,
errorPlacement: function(error, element) {
error.prependTo( element.parents("div.ctrlHolder"));
},
er
http://jqueryfordesigners.com/image-loading/
On Fri, Oct 16, 2009 at 10:48, kknaru wrote:
>
> can you give me some good references? i'm trying to understand the
> process so i don;t want to use a plugin
the callback of load function is called when the ajax request is complete
(this not include waiting images to load). You have to use some plugin to
preload images.
On Fri, Oct 16, 2009 at 08:26, kknaru wrote:
>
> nobody? :(
You can create your own validate method:
http://docs.jquery.com/Plugins/Validation/Validator/addMethod#namemethodmessage
jQuery.validator.addMethod("digitsAndLineBreak", function(value, element) {
return /^[\d|\n]+$/.test(value);
}, "Please enter only digits");
then:
$("#quicksend_form").val
Use the click event: http://docs.jquery.com/Events/click#fn
On Wed, Oct 14, 2009 at 01:23, Curtis Ovard wrote:
>
> Here is the code
> $(document).ready(function(){
>$('img').attr({onclick: "Image_Click(src)"});
>$('img').css("cursor", "pointer");
> });
>
> function Image_Click(sr
I see two things that maybe are the cause of your problems:
*space between idc:field and the atribute selector and scape the special
characted ":"*
var jqStatusMessage = jqxml.find("idc:field [name = 'StatusMessage']");
//wrong
var jqStatusMessage = jqxml.find("idc\\:field[name='StatusMessage']"
You should post this on jquery dev group:
http://groups.google.com/group/jquery-dev
On Tue, Oct 6, 2009 at 16:28, mk.keck wrote:
>
> Hello,
>
> I've found an error in Line 2853:
> IE8 stopps with follow Error Message:
> 'Mitglied nicht gefunden' in Zeile 2853 Zeichen 9
> 'Member not found' Line
You can just do:
$("#nav td, .otherclass").enter();
On Mon, Oct 5, 2009 at 07:50, jessie wrote:
>
> Hi
>
> You posted a reply but there was nothing there! LOL i can't see what
> you wrote.
>
> Thanks
> Jess :)
>
> On Oct 5, 3:57 pm, Piyush Moradiya wrote:
> > On Sun, Oct 4, 2009 at 6:34 PM, je
Just a tip:
You don't need to create a new validator function for your select. Instead
of using value="none" for your default option use value="" and just add
required:true to the rules.
about your problem: Try to put the alert inside the submitHandler function
to know if your form is validating.
$('#priority').click(function(){
if( $(this).is(':checked') )
$('.presult').text('500 USD');
else
$('.presult').text('');
});
On Mon, Sep 28, 2009 at 05:24, runrunforest wrote:
>
> Hi,
>
> I have a html like this
>
> 0 USD span>
>
> I want when checkbox is checked, the spa
You code is missing a comma after each rule
On Tue, Sep 22, 2009 at 10:34, Dakuwan wrote:
>
> Tracked it down to the rules area, there was an unclosed }.
>
> On Sep 21, 4:47 pm, Dakuwan wrote:
> > I am having the following issue, when I try using an image to post I
> > cannot get the validation
The problem is this line: $(this).children('ul').hide('fast');
If you changed to .hide() without the speed, works fine. I dont know if this
is a jquery bug.
On Mon, Sep 14, 2009 at 09:31, GLSmyth wrote:
>
> I am missing something fundamental and am sure that someone can point
> me in the right
Are you sure that $(frames['Theiframe']) is returning the iframe ?
On Tue, Sep 15, 2009 at 05:53, ximo wallas wrote:
> After 1 day googling and trying I find no agreement in a solid method for
> comunicating with iframe, this is the nearest point I've been to get in
> touch with IFRAME:
>
> $(fr
Your css is the problem :D
Missing the "." before the testing
On Wed, Sep 2, 2009 at 15:14, J. Martin wrote:
>
> I am attempting to create a box with malsup's jQuery nested corners,
> but can't get it to display properly.
>
> Here's my CSS:
> testing { margin: 0; background: #ffc; padding: 10px
Maybe its a problem with you xml:
<*product_header_sites*>F90
On Wed, Sep 2, 2009 at 08:53, Knight, Doug wrote:
> All,
>
> I wasn’t sure if this got lost in the shuffle of my first post. Does anyone
> know why the following works under FF and not under IE7? There are comments
> within the cod
$.mask.rules = {
'A': /[0-9a-zA-Z ]/
};
$('input').setMask({
mask: 'A',
type:'repeat'
});
On Fri, Aug 28, 2009 at 16:22, Mario Soto wrote:
>
> Hi everyone. I'm having troubles with meiomask to allow spaces in a
> field that will allow only letters, numbers and spaces of course. I'
I think you can't rounded a input element with this plugin. U can put the
input inside a div element, round the div and set border=0 to your input. So
the user think the input is rounded, but actualy is the div outside.
On Wed, Aug 26, 2009 at 02:40, Noel Weichbrodt wrote:
>
> I must have missed
$("#my_list a").each(function(){
newhref = '#' + $(this).attr('href').split("/")[3];
$(this).attr('href', newhref);
});
On Mon, Aug 17, 2009 at 16:07, knal wrote:
>
> Hi group,
>
> I'm looking for a correct way of manipulating The code looks like this:
>
>
> Animals
> Buildings
>
U need a id or a classe to find the element.
If u have a id in your input u could do:
$("#id"),change(function(){
//your code here
});
If u have a input inside a container that have a class you could do this:
$(".container input").change(function(){
//your code here
});
or with id
$("
Maybe this plugins will help you: http://code.google.com/p/js-hotkeys/
On Mon, Aug 10, 2009 at 10:36, Mazi wrote:
>
> Ok I found the problem.
> The problem is that i want to bind the event on the Delete button
> keypress.
> But in ie the Delete button does not fire any keyCode.
>
> Any idea/work
Try this.
$("#menu li:not(.selected)").animate({
marginLeft: "-200px"
}, function() {
if ($(this).is(':last')) {
$("#menu").hide();
}
});
On Wed, Aug 5, 2009 at 12:15, Mathieu wrote:
>
> Thanks for your answer Leonardo.
>
Use the callback function
$("#menu li").click(function() {
// toggle selected item in list
$(this).toggleClass("selected");
// animate all other LI elements to disappear (sliding left)
$("#menu li:not(.selected)").animate({
marginLeft: "-200px"
}, function(){
$(
[value='Other']").is(':checked');},
> // number: true,
>
>PlannedAttendance: "required",
> // PlannedAttendanceOther: {
> // required: function(element) {
This problem occurs when a comma is missing. Post your entire code of the
validation.
On Fri, Jul 31, 2009 at 16:00, PictureMan wrote:
>
> When I add this rule to a page with the other rules, my page stops
> validating.
> Works fine if I don't add it.
>
> What this is for is a check box next to
k(this,
> > this.FadeInGalleryImageFaded));
> >
> > On Jul 31, 3:16 pm, Leonardo K wrote:
> >
> > > Try to use the stop function before the animation start
> >
> > >http://docs.jquery.com/Effects/stop
> >
> > > On Thu, Jul 30, 2009
Try to use the stop function before the animation start
http://docs.jquery.com/Effects/stop
On Thu, Jul 30, 2009 at 18:37, Perrin4869 wrote:
>
> I guess I'll make it much easier if I strip all the surrounding stuff
> in the webpage, and use the uncompressed version of jQuery.
> Here's the updat
I think this will help you.
http://snook.ca/archives/javascript/cross_domain_aj/
On Thu, Jul 30, 2009 at 07:00, Danny Ayers wrote:
>
> I've run up against a cross-domain Ajax problem, essentially I want to
> do something like:
>
> (in http://hostA.com/page.html)
>
>
Minified and *Gzipped*
http://betterexplained.com/articles/how-to-optimize-your-site-with-gzip-compression/
On Thu, Jul 30, 2009 at 03:51, JakeG wrote:
>
> jquery.com home page says:
>
> ---
> PRODUCTION: (19KB Minified and Gzipped)
> ---
>
> ... but if you follow the link, you get a 55.9KB jqu
Something like this:
$(button).click(function(){
var total = 0;
$(input:radio).each(function(){
total += $(this).val();
});
alert(total);
return false;
});
On Mon, Jul 27, 2009 at 16:41, briggs81 wrote:
>
> This is probably simple, but I am new to jQuery and am tryin
nd LIs? There's got to be a better way...
>
> On Jul 15, 2:38 pm, Bill wrote:
> > Leonardo, thanks very much for your reply.
> >
> > I've updated my code, so the third wrapper contains the following:
> >
> >
> > Plain
You can put a DIV inside a LI and animate the DIV
content here
On Wed, Jul 15, 2009 at 16:31, Bill wrote:
>
> Alright, so this *is* a bug:
>
> http://dev.jquery.com/ticket/3120
>
> Anyone have any advice on a workaround ?
>
> On Jul 15, 12:15 pm, Bill wrote:
> > Hi all,
> >
> > I pos
Look this plugin
http://www.fyneworks.com/jquery/multiple-file-upload/#tab-Examples
On Mon, Jul 13, 2009 at 07:37, anjith wrote:
>
> Hi,
>
> I need some portal using jquery and html...for uploading multiply
> images. Actual requirement is when page opens i must have single file
> upload option w
I'm trying to guess here. I believe the problem is the padding of the
element you are sliding. Try to remove the padding from li and add to the
div inside.
I know jQuery animate padding as well but in the IE is not smooth enough.
On Tue, Jul 7, 2009 at 19:52, Bill wrote:
>
> I'm seeing some wei
jQuery only support IE6+
On Tue, Jun 23, 2009 at 09:49, pHoEniX wrote:
>
> Hi.
> Recently I had to make a project in IE 5.5 too. IE 5.5 throw almost
> instantly error. I have downloaded the developer version and try to
> figure out what could cause the errors.
>
> By commenting out line
> 2167:
Great plugin!
It would be nice if the plugin was functional at least in IE7
On Tue, Jun 9, 2009 at 22:48, Tony Landis wrote:
>
> I wrote a jQuery plugin "bullsEye" for that provides some
> visualization effects for large data tables, and would like any
> usability suggestions or bug reports. So
When i valid the formulary with j-query validate, it increases the width(or
size) of my imput.
How can i take out this option? Please help me, its urgent!
thanks.
When i valid the formulary with j-query validate, it increases the width of
my imput.
How can i take out this option? Please help me, its urgent!
thanks.
This $("a[href='Menu/appetizersandpizza.aspx']").addClass("current"); work
for me... Look:
http://jsbin.com/imoju/edit
On Mon, May 11, 2009 at 18:15, Matt wrote:
>
> This seems like such a simple basic task, but I can't seem to get the
> syntax correct. I have a menu, and using jQuery it adds
Something like this:
function send(){
var params = $("#commentsForm").serialize();
$.post("subscribe.php", params, function(data){
$("#updateDiv").html("Data Loaded: " + data);
});
}
On Thu, May 7, 2009 at 19:40, Brian Yanosik wrote:
> I am moving all of my scripts from moot
change: this.text //this code you are not using the "power" of the jquery
:D. Its just regular javascript.
to: $(this).text()
This should work crossbrowser. Ex: http://jsbin.com/usazu
On Wed, May 6, 2009 at 01:08, infoaddicted wrote:
>
> I have some HTML:
>
>Link One
>Link Two
>Link
You need to use the simbol # before the name of ID.
$( "#myDiv" ).css('left', '150px');
On Wed, May 6, 2009 at 22:22, ace jquery wrote:
> Hi there,
>
> I am trying to move the div object, but it seems doesn't work. any ideas?
> Thanks
>
>
>
>
>
>
> $(document).ready(function () {
>
>
We can't access your example page.
"You don't have permission to access /hideshow.php on this server."
On Tue, Apr 28, 2009 at 04:58, tahooft wrote:
>
> For me one of the best things about jQuery is that I don't have to
> worry about browser compatiblity. I wrote some code to extend an
> excist
Maybe is easier if you put a class (wrapper) in your div that wrap all other
divs, and then you could use:
$(this).closest('div.wrapper').find(":checkbox");
and
$(this).closest('div.wrapper').prev();
On Thu, Apr 16, 2009 at 09:26, Dragon-Fly999 wrote:
>
> Thanks, Karl. Your suggestions work f
Try this:
$(mol_elements).filter(".mol_row").append( ""+ molname +"");
On Thu, Apr 16, 2009 at 09:08, Josch wrote:
>
>
> I don't really understand what you want to do...
> Do you want to select a DOM-Object like
>
> ?
> Then, the selector would be $("form.example").
>
>
> Josch
>
>
> On 16 Apr
Your page didn't work in Opera, IE7 and IE6. :(
Instead of using display:inline-block on span.projects, change to
float:left; Another thing, when using the animation, i dont know why, but
the jquery use overflow:hidden and your left image (border) disappear in the
animation. So this css should sol
I know you said you tested it, but the parameters that I use and always
works are:
On Wed, Apr 8, 2009 at 13:53, James Diamond wrote:
>
> My comment was in accurate about it working in all other browsers.
> Safari on Mac is fine. However Safari & Opera on Windows both do the
> same thing as f
Set and Get the fontSize from the body not the html.
Ex: var currentSize = $("body").css("font-size");
I change your code and works fine if you use the body instead of html to set
and get the size: http://jsbin.com/iwage
On Tue, Mar 31, 2009 at 10:20, Dan Vega wrote:
>
> I am using the followi
Shoud be:
jQuery("#click_me:button").attr("disabled", "disabled");
and to re-enable
jQuery("#click_me:button").removeAttr("disabled");
On Mon, Mar 30, 2009 at 11:44, Thierry wrote:
>
> I can disable button with specific id with the following code:
>
> jQuery("#click_me:button").attr("disabled
Maybe this question about performance should be ask in jQuery Dev Group. :D
On Thu, Mar 26, 2009 at 10:36, Samuel wrote:
> Hope get your helps.
>
> On Thu, Mar 26, 2009 at 1:14 AM, Samuel wrote:
>
>> supplement more information on the issue.
>>
>> $('.words') have html data, ie, this node is no
So, if u want hide when the radio change add this to your input radio change
event.
if ( $(this).val() == "public" )
$(this).parent().find("div.tags").hide();
else
$(this).parent().find("div.tags").show();
The behavior for checkbox is the same as the radio button. So, applied
change event
I don't know if I understand but u can return the css using the css method
like:
$("h1").css("color"); //return the color
$("h1).css("background-color"); //return the backgrund-color
U have to call the css method for every property in css.
On Thu, Mar 12, 2009 at 12:50, sfea...@gmail.com wrote:
*This should work for your markup
$(document).ready(function(){
$("input[type=radio]:checked + label").addClass("hilite");
$("input[type=radio]").change(function () {
$(this).parent().find("label.hilite").removeClass("hilite");
var id = $(this).attr("id");
$("label[for="+ id + "]").addClass("hilit
That should work for your markup
$(document).ready(function(){
$("input[type=radio]:checked + label").addClass("hilite");
$("input[type=radio]").change(function () {
$(this).parent().find("label.hilite").removeClass("hilite");
var id = $(this).attr("id");
$("label[for="+ id + "]").addClass("hilite
Try this
$(document).ready(function(){
$("input:checked + label").addClass("hilite");
$("input").change(function () {
$("label.hilite").removeClass("hilite");
var id = $(this).attr("id");
$("label[for="+ id + "]").addClass("hilite");
});
});
On Thu, Mar 12, 2009 at 00:22, mdjamal wrote:
>
Try to remove the comma after the rules and the comma in the last rule.
rules {
//your rules
Dont_Cadres: "required", < this comma
},< this comma
On Thu, Mar 12, 2009 at 07:29, Mediacom87 wrote:
>
> Hi, i've a pb to do working the valdation plugin on IE.
>
> My form : http://finass
Ops, change this:
$('div.body:visible').slideUp();
to
$bodyVisible.slideUp();
because u already have the element to slideUp in the var
:D
On Tue, Mar 10, 2009 at 13:51, Leonardo K wrote:
> I dont know exactly whats wrong in your code, but u can do much simplier
>
I dont know exactly whats wrong in your code, but u can do much simplier
code, like this:
$(document).ready(function() {
//hide all div.body
$('div.show_wrapper div.body').hide();
$('a.show_link').click(function() {
//element to slide Up or Down
var $bodyTarget =
$(thi
I just reproduce your code here and works like a charm.
On Thu, Feb 26, 2009 at 08:22, phipps73 wrote:
>
> bump
>
> has anyone seen this problem?
>
> Cheers,
>
> Dave
>
> On Feb 25, 3:26 pm, phipps_73 wrote:
> > Hi,
> >
> > I was previously using version 1.29 of the MultiFile plugin and it was
Assign the event to the element li and not the image. Because if you display
a text over the image, you will lose the event mouseover.
$(document).ready(function() {
$("li.episode").mouseover(function () {
$(this).addClass("background");
$('div.details').addClass("show");
});
Look this example
http://jquery.bassistance.de/validate/demo/milk/
http://plugins.jquery.com/project/validate
On Thu, Feb 12, 2009 at 01:36, expresso wrote:
>
>
> I'm looking for a JQuery Validation control that will allow us to show a
> small image if a form field is valid. So for instance a
http://www.w3schools.com/XML/xml_encoding.asp
On 2 fev, 07:34, Hilmar Kolbe wrote:
> I have the same problem with german characters (Umlaute) - each umlaut comes
> in with a charCode of 65533.
> Is there really no way to get an 8859-page via Ajax with unencoded
> characters?
1 - 100 of 132 matches
Mail list logo