Hi,
Do not know how to do this. Using coldfusion. Have cfselect object (id="Decision") with 3 values - Select; Approved; Denied. Have two input buttons, Request Approved (id="approved") and Request Denied (id="denied"). The Approved is visible but disabled. The Denied is not visible. The user needs to select from "Decision" either Approved or Denied before he/she can submit. So when user selects Approved from drop-down I want to enable Request Approved submit button. If user selects Denied from drop-down I want the disabled Request Approved button to not be visible and the Request Denied button to be visible and enabled for submission. The respective buttons will be directed to their appropriate actions.
I am no further than this
function decide = function() {
var choice = document.getElementById("Decision");
var apprvd = document.getElementById("approved");
var deny = document.getElementById("denied");
if (choice.value = "Approved";
My limited knowledge goes no further.
Thanks for any help - John
Do not know how to do this. Using coldfusion. Have cfselect object (id="Decision") with 3 values - Select; Approved; Denied. Have two input buttons, Request Approved (id="approved") and Request Denied (id="denied"). The Approved is visible but disabled. The Denied is not visible. The user needs to select from "Decision" either Approved or Denied before he/she can submit. So when user selects Approved from drop-down I want to enable Request Approved submit button. If user selects Denied from drop-down I want the disabled Request Approved button to not be visible and the Request Denied button to be visible and enabled for submission. The respective buttons will be directed to their appropriate actions.
I am no further than this
function decide = function() {
var choice = document.getElementById("Decision");
var apprvd = document.getElementById("approved");
var deny = document.getElementById("denied");
if (choice.value = "Approved";
My limited knowledge goes no further.
Thanks for any help - John