- Sun Feb 19, 2017 2:41 am
#789219
I have a dynaform which containing a Drop Down list (id = acc_rej).
This is my code. But not working. Hide the Change Text field is working..I have tried in many way. All codes are below.
-
Key Value
1 Accept
2 Reject
3 Change
This is my code. But not working. Hide the Change Text field is working..I have tried in many way. All codes are below.
Code: Select all
$(document).ready(function(){
var acceptRejectChange = $("#acc_rej").getValue();
$("#changetxt").hide();
var selectedVal = $('#acc_rej :selected').text();
var sv = $('#acc_rej').find('option:selected').text();
if(selectedVal=='Change' || acceptRejectChange==3 || sv == 'Change' || sv==3)
{
$("#changetxt").show();
}
});