$( document ).ready(function() { // formmail input에 nbsp 있던거 삭제 const nameInput = $('.table_02 input[name=name]') const titleInput = $('.table_02 input[name=title]') nbspRemove(nameInput) nbspRemove(titleInput) function nbspRemove(Dom){ console.log(Dom) const parent = Dom.parent() const input = $(Dom).clone() parent.html('') parent.append(input) } });