hi,

i have a drop down list which contains services available.
when you select any option from it calls the doSubmit method in javascript

<% String submitString = "doSubmit('" + SELECT_SERVICE + "');"; %>

The doSubmit is as below

function doSubmit(actionString){
alert(actionString);
currentForm = document.forms[0];
currentForm.actionName.value = actionString;
alert(currentForm.actionName.value);
currentForm.submit();
}

The first alert is displaying SELECT_SERVICE but select alert is not
reached. Even empty alert box is not coming

So it is not assigning actionString value to the form attribute actioName.
Even when i click any button in the jsp the first alert is showing the value
but not the second. happening. The page is remaining as it is. Not even
showing any error.

so anybody out there please advice where i went wrong

Thanks,


kalyan

Reply via email to