Re: [jQuery] Re: (validate) form field validation with field id doesn't work.

2009-10-30 Thread monika budhiraja
Hi there ,
  thanks for your reply.

So, you mean we need to have a "label" tag? Can we skip that label tag.

Also, I wanted to apply css changes based on the id.
Let;s say If we have multiple checkboxes and use multiple selections, then
we want to show some different css on selected once.

Orafter every 5 checkboxes, add some css to make some kind of distinction.

So, for that it would be easier if we have access to ids. and not the name..






On Fri, Oct 30, 2009 at 11:41 AM, Don Dunbar  wrote:

> Hi, multiple fields should not have the same 'name' in a form. If you need
> first name for two parts of a form, then you should give a more explicit
> name to the input : ex. first name for shipping could be 'firstNameShip' and
> first name for billing could be 'firstNameBill' etc. The reason is because
> you should be using labels that are assigned through the 'for' attribute to
> an input, giving greater accessibility. This also makes for a more semantic
> name scheme than firstName1.
> DED
>
>
> On Thu, Oct 29, 2009 at 5:22 PM, monika budhiraja <
> monika.budhir...@gmail.com> wrote:
>
>> yeah . that's what I think would be some confusion coz it might be that
>> multiple  fields that have same name but Ids would be unique throughout
>> page.
>>
>> So, I was really wondering, if there is any way to setup rules and
>> validations based on ids and ignore names completely.
>>
>> On Thu, Oct 29, 2009 at 5:02 PM, James  wrote:
>>
>>> If you change the name of your field, you'd have to change your rules
>>> in the validation options from "firstname" to "firstname1" also.
>>>
>>> On Oct 29, 10:34 am, Monika  wrote:
>>> > Hi :
>>> >   I am trying to use jquery validatro plugin and used tried demo on
>>> > the live site.  Just looking if I can use this framework for UI
>>> > validation or not.
>>> >So, On demo, whene i tried replacing name with id, the validation
>>> > doesn't work.
>>> > Demo page :  has 2 form.
>>> >  http://jquery.bassistance.de/validate/demo/
>>> >
>>> > And in the second form, when I change the firstname :
>>> >
>>> >Firstname
>>> >
>>> >
>>> > to something like :
>>> >Firstname
>>> >   
>>> >
>>> > it doesn't work.  Please let me know if I need to do anything.
>>>
>>
>>
>


Re: [jQuery] Re: (validate) form field validation with field id doesn't work.

2009-10-30 Thread Don Dunbar
Hi, multiple fields should not have the same 'name' in a form. If you need
first name for two parts of a form, then you should give a more explicit
name to the input : ex. first name for shipping could be 'firstNameShip' and
first name for billing could be 'firstNameBill' etc. The reason is because
you should be using labels that are assigned through the 'for' attribute to
an input, giving greater accessibility. This also makes for a more semantic
name scheme than firstName1.
DED

On Thu, Oct 29, 2009 at 5:22 PM, monika budhiraja <
monika.budhir...@gmail.com> wrote:

> yeah . that's what I think would be some confusion coz it might be that
> multiple  fields that have same name but Ids would be unique throughout
> page.
>
> So, I was really wondering, if there is any way to setup rules and
> validations based on ids and ignore names completely.
>
> On Thu, Oct 29, 2009 at 5:02 PM, James  wrote:
>
>> If you change the name of your field, you'd have to change your rules
>> in the validation options from "firstname" to "firstname1" also.
>>
>> On Oct 29, 10:34 am, Monika  wrote:
>> > Hi :
>> >   I am trying to use jquery validatro plugin and used tried demo on
>> > the live site.  Just looking if I can use this framework for UI
>> > validation or not.
>> >So, On demo, whene i tried replacing name with id, the validation
>> > doesn't work.
>> > Demo page :  has 2 form.
>> >  http://jquery.bassistance.de/validate/demo/
>> >
>> > And in the second form, when I change the firstname :
>> >
>> >Firstname
>> >
>> >
>> > to something like :
>> >Firstname
>> >   
>> >
>> > it doesn't work.  Please let me know if I need to do anything.
>>
>
>


Re: [jQuery] Re: (validate) form field validation with field id doesn't work.

2009-10-29 Thread monika budhiraja
yeah . that's what I think would be some confusion coz it might be that
multiple  fields that have same name but Ids would be unique throughout
page.

So, I was really wondering, if there is any way to setup rules and
validations based on ids and ignore names completely.

On Thu, Oct 29, 2009 at 5:02 PM, James  wrote:

> If you change the name of your field, you'd have to change your rules
> in the validation options from "firstname" to "firstname1" also.
>
> On Oct 29, 10:34 am, Monika  wrote:
> > Hi :
> >   I am trying to use jquery validatro plugin and used tried demo on
> > the live site.  Just looking if I can use this framework for UI
> > validation or not.
> >So, On demo, whene i tried replacing name with id, the validation
> > doesn't work.
> > Demo page :  has 2 form.
> >  http://jquery.bassistance.de/validate/demo/
> >
> > And in the second form, when I change the firstname :
> >
> >Firstname
> >
> >
> > to something like :
> >Firstname
> >   
> >
> > it doesn't work.  Please let me know if I need to do anything.
>


[jQuery] Re: (validate) form field validation with field id doesn't work.

2009-10-29 Thread James
If you change the name of your field, you'd have to change your rules
in the validation options from "firstname" to "firstname1" also.

On Oct 29, 10:34 am, Monika  wrote:
> Hi :
>   I am trying to use jquery validatro plugin and used tried demo on
> the live site.  Just looking if I can use this framework for UI
> validation or not.
>    So, On demo, whene i tried replacing name with id, the validation
> doesn't work.
> Demo page :  has 2 form.
>  http://jquery.bassistance.de/validate/demo/
>
> And in the second form, when I change the firstname :
>
>                        Firstname
>                        
>
> to something like :
>    Firstname
>   
>
> it doesn't work.  Please let me know if I need to do anything.