[jQuery] Re: jQuery Validation - group input field validation

2009-07-14 Thread carbon
Just before the , theres the DIV that contains the error messages. There are errors in your enquiry submission, please see below for details. Please enter your first name Please enter your last name Please provide either an email address, home phone or mobile for us to get in

[jQuery] jQuery Validation - group input field validation

2009-07-14 Thread carbon
Hi, How can I do validation on a group of input fields, as long as one of the 3 fields have a value then it's valid, I've managed to group them, but it's showing up with 3 error messages instead of one. How can I get it to display just the one error msg for all 3 input fields? Here's my validati

[jQuery] Re: Stripping last html tag within an area.

2009-03-08 Thread carbon
tags do ... > .each(function(){ > > // the current object >  $(this) > > // replace the p tag with what ever is inside of the p tag including > other html tags (ie ) > .replaceWith($(this).html()); > > // end the for each and selection > > }); > > On Mar 8, 7

[jQuery] Re: Stripping last html tag within an area.

2009-03-08 Thread carbon
rticle > p:last').remove(); > > --Karl > > > Karl Swedbergwww.englishrules.comwww.learningjquery.com > > On Mar 8, 2009, at 7:44 PM, carbon wrote: > > > > > Thanks, but that didn't work. > > what does the .replaceWith($(this).htlm() do?

[jQuery] Re: Stripping last html tag within an area.

2009-03-08 Thread carbon
Thanks, but that didn't work. what does the .replaceWith($(this).htlm() do? shouldn't we use something like 'remove' instead? On Mar 9, 10:37 am, "comslash.com" wrote: > Try this. > > $('article>p:last').replaceWith($(this).html()); > >

[jQuery] Stripping last html tag within an area.

2009-03-08 Thread carbon
is it possible to use jQuery to strip a tag from a 'div' ? example: hello world last paragraph I would like strip the tags from 'last paragraph'.

[jQuery] Change text on toggle effect

2008-11-26 Thread carbon
Hi guys, I've written the below function to change the text on toggle, problem is i want this though i don't want this to be controlled by the JS. currently have 2 spans.. View details Hide details The 'view' class is visible while the 'hide' class is hidden initially. I would like to show the 'h

[jQuery] multiple toggle classes within one ID

2008-11-07 Thread carbon
Hi, I'm trying to implement multiple toggle classes within one ID. When you toggle 1 class, the intial span 'view details' would hide and the hidden span 'hide details' would display. the problem i'm having is i'm unable to specify the text toggling to happen just to the current class. its happe