[jQuery] Re: validate plugin and CodeIgniter

2008-10-22 Thread hcvitto
http://www.azero.it/test_val/form.php here's a test page with the problemtic block..i did some change and it works better now but still i couldn't manage to make it right. I'm sure it's my lack of js knowladge..

[jQuery] Re: validate plugin and CodeIgniter

2008-10-22 Thread Jörn Zaefferer
You don't have any code at all that checks the state of the other radio buttons, you just check the button itself. You need to select a radio buttons, iterate and check if there is at least one selected, if not, the checked on is required. Jörn On Wed, Oct 22, 2008 at 9:59 AM, hcvitto [EMAIL

[jQuery] Re: validate plugin and CodeIgniter

2008-10-22 Thread hcvitto
doh!! ok..now i do that but i can't get the result of the iterate function (i see my question is no longer about the plugin!). Any suggestion :) ?

[jQuery] Re: validate plugin and CodeIgniter

2008-10-22 Thread hcvitto
doh!! ok..i do that now but i can't get the right result of the iteration function (i see it's no longer a plugin problem!) Any suggestion though :) ?

[jQuery] Re: validate plugin and CodeIgniter

2008-10-22 Thread hcvitto
done it! if anyone interested here's what i did: here's the class rule which calls a function that iterate through the radiobuttons $.validator.addClassRules({ scuola: { required: function(){ checkIstruzione();

[jQuery] Re: validate plugin and CodeIgniter

2008-10-21 Thread Jörn Zaefferer
A testpage would help. Does CI use any javascript to handle the form submit? Its possible that CI submits the form via JavaScript, triggering the validation again. Not very likely though. Jörn On Tue, Oct 21, 2008 at 5:21 PM, hcvitto [EMAIL PROTECTED] wrote: hi i'm giving a go at codeIgniter

[jQuery] Re: validate plugin and CodeIgniter

2008-10-21 Thread hcvitto
h Jorn thank for the quick reply..it was my mistake :(.. but, if i'm not annoying, i got another issue which i solved with a twik but was wonder if there's a better solution.. i got 5 couples of radio button: input name=name1 type=radio value=si class=className / input name=name1 type=radio

[jQuery] Re: validate plugin and CodeIgniter

2008-10-21 Thread Jörn Zaefferer
Can you provide a simple testpage where I can see that code running? Jörn On Tue, Oct 21, 2008 at 6:13 PM, hcvitto [EMAIL PROTECTED] wrote: h Jorn thank for the quick reply..it was my mistake :(.. but, if i'm not annoying, i got another issue which i solved with a twik but was wonder if