Below function was not working. please correct my mistake.
function setupScript() {
OtherOnchanged('call_response', 'SPAN_Other', 'Other');
}
function OtherOnchanged (onChangedId, spanId, valueToCheck) {
if ( $("#" + onChangedId).val() == valueToCheck) {
alert ("Working");
}
}
This is fine, problem is probably somewhere else, in your HTML code.
Or … are you calling setupScript() function ?
http://sandbox.phpcode.eu/g/8c7a0.php