Hi,
I have a php form with two sets of radio buttons to undelete or to purge and one submit button to do the required action.
I want to add a javascript confirm statement only when the purge radio button is selected, the user can select either a single file to purge or multiple files to purge and when the user clicks on the submit button I want a javascript confirm statement to confirm purging the files.
Right now I have put the confirm onclick event when the submit button is clicked so the confirm statement window pops up even if only undelete radio buttons are selected.
However I just want the confirm statement when the purge buttons are selected.
Don't know much javascript, appreciate any help.
Thanks,
Mohit
I have a php form with two sets of radio buttons to undelete or to purge and one submit button to do the required action.
I want to add a javascript confirm statement only when the purge radio button is selected, the user can select either a single file to purge or multiple files to purge and when the user clicks on the submit button I want a javascript confirm statement to confirm purging the files.
Right now I have put the confirm onclick event when the submit button is clicked so the confirm statement window pops up even if only undelete radio buttons are selected.
However I just want the confirm statement when the purge buttons are selected.
Don't know much javascript, appreciate any help.
Thanks,
Mohit