Re: JQuery issue

Re: JQuery issue

am 12.02.2010 12:38:04 von Ashley Sheridan

--=-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--

JQuery issue

am 12.02.2010 12:39:43 von Devendra Jadhav

--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--

RE: JQuery issue

am 12.02.2010 13:24:19 von Jay Blanchard

[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

Re: JQuery issue

am 12.02.2010 13:49:04 von Devendra Jadhav

--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 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
>
>


--=20
Devendra Jadhav
देवेंदॠà¤° =
जाधव

--001517576db6464e55047f66b16a--