AnsweredAssumed Answered

How to get selected value from dropdown list in JavaScript

Question asked by prasadplvv on Jul 27, 2017
Latest reply on Jul 27, 2017 by prasadplvv

I have a dropdown list Name Approver (APN) need to validate the selected Approver is equal to current user name on a button click if true need to set value in Radio button(Yes/No) to No 

 

Java script code i am using as below

 

NWF$('#'+ApID).val(); is returning 1 need to display the selected value. 

 

if(NWF$('#' + APN).val()=="Current User (Display Name)")
{

alert(NWF$('#'+ApID).val());
alert("Current User (Display Name)");
}

Outcomes