elem_set_value function

Set the value of an input