Hi
Im trying to manipulate a forms input before submitting it dynamically like this
function submitForm(str_Action)
{
document.forms.frm_Categories.ActionType.Value = "str_Action";
document.forms.frm_Categories.submit();
}
however the new value never appears on the action page, the form seems to retain its original value for ActionType
Unfortunately I'm using ASP to process this form (not by choice), but Im sure ive done the same thing before using a PHP script to process it and its workes fine!
dynamic form manipulation
Moderator: General Moderators
try
Code: Select all
function submitForm(str_Action)
{
document.frm_Categories.ActionType.Value = str_Action;
document.frm_Categories.submit();
}