from your code as i a;lready have that in place for the rest of the alerts however now it prompts if the weeks havent been selected but also the one below "End Date needs to be filled in" so it it going from one prompt to another, i tried adding a

return false;

at the end of alert("Duration needs to be selected"); to read

at the end of alert("Duration needs to be selected");

return false;

}

but then that doesnt work

here is the code

function validateForm()

{

var x=document.forms["form2"]["StartDate"].value;

if (x==null || x=="")

{

alert("Start Date needs to be filled in");

return false;

}

function checkRadio (frmName, rbGroupName) {

var radios = document[frmName].elements[rbGroupName];

for (var i=0; i <radios.length; i++) {

if (radios[i].checked) {

return true;

}

}

return false;

}

{

if (!checkRadio("form2","weeks"))

alert("Duration needs to be selected");

}

var x=document.forms["form2"]["EndDate"].value;

if (x==null || x=="")

{

alert("End Date needs to be filled in");

return false;

}

i have also run into another problem, i have multiple radio boxes, i also have

i have looked at the plugin and it looks great for new projects but my form is complete except for the alerts, ideally i want alert pop ups rather than the alerts to be built into the page, i will definatly use this in future projects.

ok i think we are getting there. i will have a playa round with this. the thing is i dont really want them leading from one to another, i want them completly seperate si i think i need to get rid of the else statement,

in the form i have

radio

text input

text input

text input

then radio, and i need them going in order of input.

with the method you have shown me this will validate all the radio togeather wont it??