Pass id and name attributes to input field