christrinder
07-02-2003, 09:31 AM
Hello,
Ok, my knowledge is generally server-side, and even that is limited, so I need a little help with some JS if you can. Basically I want to change the action of the form if option 5 is selected on one of the drop-down menus. I have written the below code, but I think I may have over simplified it. The form tags include...
id="formtags"
Any help would be much appreciated.
Thanks,
Chris
- - - - - - - - - -
function ChangeFormAction()
{
var srcElem = window.event.srcElement;
var action = formtags.action;
action="DealerSalesReports.aspx"
if(srcElem.value == 5)
{
action="DealerLeadsSummary.aspx"
}
}
Ok, my knowledge is generally server-side, and even that is limited, so I need a little help with some JS if you can. Basically I want to change the action of the form if option 5 is selected on one of the drop-down menus. I have written the below code, but I think I may have over simplified it. The form tags include...
id="formtags"
Any help would be much appreciated.
Thanks,
Chris
- - - - - - - - - -
function ChangeFormAction()
{
var srcElem = window.event.srcElement;
var action = formtags.action;
action="DealerSalesReports.aspx"
if(srcElem.value == 5)
{
action="DealerLeadsSummary.aspx"
}
}