You have to takeout the first "/"
with .slice()
this way:
$("#reasonValue").val(missedReasonCode.slice(1));
//--------------------^^^^^^^^^^^^^^^^^^^^^^^^^--try using this way
From the docs:
Given a jQuery object that represents a set of DOM elements, the .slice() method constructs a new jQuery object containing a subset of the elements specified by the start and, optionally, end argument. The supplied start index identifies the position of one of the elements in the set; if end is omitted, all elements after this one will be included in the result.