i have one javascript function for validating the radiobutton.i have to check it on the button click.but i already have one function there for saving the form.so wht will i do

plz help me

man i didnt get that, why u use javascript function to validate radio button?
u need only to know the selected radio from a group and this is done while submting the form.
u make in submit function, condition to know the checked radio and then u take its value

use the below code in the submit function:
for (i=0; i < 4; i++){
if (radio.checked)
y = radio.value
}
}

ok, hope i answer ur question

sam

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.