Did you experiment with the previous code I posted to try and see why
it wasn't working? If so, what were the results? It seems like the
goal posts have changed each time you reply. I'd prefer to just work
out a logical solution and debug it until it does work. It's hard to
know why my code doesn'
Thank you for all of your help to date Joel. I still can't get this darn
thing working. The snippet you sent me runs without errors, but does not
alert when a group has been missed.
I have this, but it only works when the first radio button is selected. Any
other advice?
function CheckSurvey (for
On 9/6/07, Joel Birch <[EMAIL PROTECTED]> wrote:
> function validate_form(){
> var valid = true;
> //loop through the radio sets
> $('tr.radioSet').each(function(){
> var theRadioSet = this;
> //make sure at least one radio is checked
>
On 9/6/07, Shaun Kester <[EMAIL PROTECTED]> wrote:
>
> I figured out the missing ';', sorry about that. I found this function
> in the archive and it works for alerting me that one of the radio sets
> is not checked. Is there any way in the alert for it to tell me the
> name, id, or rel attribute
I figured out the missing ';', sorry about that. I found this function
in the archive and it works for alerting me that one of the radio sets
is not checked. Is there any way in the alert for it to tell me the
name, id, or rel attribute of the group that stopped the find?
if(!$(this).find
I'm getting an error:
missing ; after for-loop initializer
I'm using firebug, but I don't see where the error is. Any insight?
Thanks for your help
On Sep 4, 6:50 pm, "Joel Birch" <[EMAIL PROTECTED]> wrote:
> Hi Shaun,
>
> Try this, although it is untested:
>
> function validate_form (){
>
Hi Shaun,
Try this, although it is untested:
function validate_form (){
var valid = true;
for (var i=1, i<4, i++){
if ( $(':checked',document.survey['question'+i]).length == -1 ){
alert ( 'Please answer question #' + i );
7 matches
Mail list logo