JQuery issue

--0016363b90503fa039047f65b9a1
Content-Type: text/plain; charset=ISO-8859-1

Hi All,

Sorry for asking question at wrong place.. (Please tell me where to as
questions about JQuery)
I am using JQuery Validate plugin.
I am validating form which contains two items Name & phone number
Phone number contains three text boxes.
Now the default behavior of JQuery Validate put error message in front of
text boxes. It is ok for Name but,
for phone number i have placed three text boxes in a row. So i want single
message for this after the third text box.
So i did following thing

var form = $("#frm_something")
form.validate({
submitHandler: function() {
alert("Valid date range!")
},
groups: {
dateRange: "phone1 phone2 phone3"
},
errorPlacement: function(error, element) {
form.find(".error_container").append(error);
}
});

with above it is showing all errors in "error_container" span.
I want only date error should come in error_container everything else should
be as it is before (in-front of text boxes)

Please help..

--
Devendra Jadhav

--0016363b90503fa039047f65b9a1--
Devendra Jadhav [ Fr, 12 Februar 2010 12:39 ] [ ID #2032149 ]

Re: JQuery issue

--=-GkBPy7e73zi2rWId0nAO
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

On Fri, 2010-02-12 at 17:09 +0530, Devendra Jadhav wrote:

> Hi All,
>
> Sorry for asking question at wrong place.. (Please tell me where to as
> questions about JQuery)
> I am using JQuery Validate plugin.
> I am validating form which contains two items Name & phone number
> Phone number contains three text boxes.
> Now the default behavior of JQuery Validate put error message in front of
> text boxes. It is ok for Name but,
> for phone number i have placed three text boxes in a row. So i want single
> message for this after the third text box.
> So i did following thing
>
> var form = $("#frm_something")
> form.validate({
> submitHandler: function() {
> alert("Valid date range!")
> },
> groups: {
> dateRange: "phone1 phone2 phone3"
> },
> errorPlacement: function(error, element) {
> form.find(".error_container").append(error);
> }
> });
>
> with above it is showing all errors in "error_container" span.
> I want only date error should come in error_container everything else should
> be as it is before (in-front of text boxes)
>
> Please help..
>

As JQuery is Javascript, you're better off asking on a Javascript list
if you can't find a dedicated JQuery one.

Thanks,
Ash
http://www.ashleysheridan.co.uk



--=-GkBPy7e73zi2rWId0nAO--
Ashley Sheridan [ Fr, 12 Februar 2010 12:38 ] [ ID #2032150 ]

RE: JQuery issue

[snip]
Sorry for asking question at wrong place.. (Please tell me where to as
questions about JQuery)
[/snip]

Google is your friend....

http://docs.jquery.com/Discussion#Official_Forums


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Jay Blanchard [ Fr, 12 Februar 2010 13:24 ] [ ID #2032151 ]

Re: JQuery issue

--001517576db6464e55047f66b16a
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

thank you all

On Fri, Feb 12, 2010 at 5:54 PM, Jay Blanchard <jblanchard [at] pocket.com>wrote=
:

> [snip]
> Sorry for asking question at wrong place.. (Please tell me where to as
> questions about JQuery)
> [/snip]
>
> Google is your friend....
>
> http://docs.jquery.com/Discussion#Official_Forums
>
>


--
Devendra Jadhav
=E0=A4=A6=E0=A5=87=E0=A4=B5=E0=A5=87=E0=A4=82=E0=A4=A6=E0=A5 =8D=E0=A4=B0 =
=E0=A4=9C=E0=A4=BE=E0=A4=A7=E0=A4=B5

--001517576db6464e55047f66b16a--
Devendra Jadhav [ Fr, 12 Februar 2010 13:49 ] [ ID #2032152 ]
PHP » gmane.comp.php.general » JQuery issue

Vorheriges Thema: expression engine
Nächstes Thema: SOAP connect error