html input js onclick кнопка нажмите

<div class="input-group">
  <span class="input-group-btn">
    <a id="lfm" data-input="thumbnail" data-preview="holder" 
		class="btn btn-primary">
          <i class="fa fa-picture-o"></i> Выбирать
	</a>
 </span>
<input id="thumbnail" class="form-control" type="text"
name="filepath" required value="{{ old('filepath', '') }}"
                                       onclick="getElementById('lfm').click()"/>
                            </div>
Shadow