Today I Learned

form 기본값 주기

c3epmos 2020. 1. 21. 10:58

form에서 기본 값을 주기 위해서는 input type을 hidden으로 바꾸고 value에 전달하고 싶은 값을 넣는다.

form_string += "<input type='hidden' id='ref' name='ref_comment' value='"+ref_comment+"'/>"