asked on September 28, 2017
I have a field that is populated using a lookup from a db. The value in the db is B but I need it to show as 'Both'
This is what I have tried so far (that doesn't work)
$(document).ready(function(){
$('.resides').on('change', 'input', changeInput);
function changeInput () {
if ($(this).text() == 'B') {
$(this).text('input','Both');
}
else {
$(this).text('input','none');
}
}
});
0
0