study/Front 썸네일형 리스트형 formData axios selectbox 선택 특정 value 값의 선택을 true시킴 $("#flag").val("1").prop("selected", true); 전체 삭제 Just.. $("select#아이디 option").remove(); $('#selectBox option:selected').val(); // select box 선택 값 출력 $('#selectBox option:selected').text(); // option 값 출력 특정 옵션 삭제 $("select#아이디 option[value='option']").remove(); 옵션 추가 $("select#아이디").append("옵션추가"); $("input[name=ckall]").click(function(){ if($("input[name=ckall]").pro.. 더보기 axios.js let tmpDt = "empty"; fn_get_corp_cd=function(){ axios({ method: 'get', //통신 방식 url: '/logs/getCORP_CD', //통신할 페이지 data: {} //인자로 보낼 데이터 }) .then(response=>{ console.log('console responseData',response); tmpDt = response; return tmpDt; }) .catch(error=>{ //console.log(error); tmpDt = error; return tmpDt; }) $("#corpcdselect").empty(); $("#corpcdselect").append(htm) } function resolveAfter2Seconds.. 더보기 이전 1 2 다음