def get_input_var_value(soup, var_id):
    """Get the value from text input variables.

    Use when you see this HTML format:
     <input id="wired_config_var" ... value="value">

    Args:
        soup (soup): soup pagetext that will be searched.
        var_id (string): The id of a var, used to find its value.
    Returns:
        (string): The value of the variable

    """
    try:
        var_value = soup.find('input', {'id': var_id}).get('value')
        return var_value
    except AttributeError:
        print('\nERROR:  <' + var_id + '>  not found!\nPagesoup:\n\n', soup)
        raise LookupError