Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- Node.js apache 연동
- node.js
- httpd-dav.conf
- CentOS
- httpd-mpm.conf
- PHP 5.2 .ini
- httpd 2.2.32
- httpd-vhosts.conf
- httpd.conf
- apache 연동
- python 3.5.10
- MySQL
- httpd-info.conf
- unique_id
- gcc update
- Mod_Security 룰 셋
- mod_unique_id
- CentOS 6.10
- Repository
- PHP 5.2.17 .ini
- epel repository
- MySQL 5.1.41
- httpd-default.conf
- Node.js 소스 설치
- vim color scheme
- CentOS 6
- jQuery
- httpd-autoindex.conf
- python 3.X 소스 설치
- vimrc 옵션
Archives
- Today
- Total
곰시기's
JQuery - change, ajax 본문
$( "#test1" ).change(function( e ){
$.ajax({
type: "post",
url : "https://",
data: { mode : "test", sido : $("#test1").val() },
contentType: 'application/x-www-form-urlencoded; charset=euc-kr',
dataType:"html",
success : function( data ) {
data = JSON.parse( data );
if( data.code == "002" ) {
let html = "<option value='0' selected='selected'>test</option>";
html += data.content;
$( "#test" ).empty();
$( "#test" ).append( html );
searchFunc();
} else {
console.log( data.msg );
}
}
})
});
'Web Development > JavaScript' 카테고리의 다른 글
JQuery - unescapeHtml (0) | 2021.02.12 |
---|---|
JQuery - 드래그 체크 박스 (0) | 2021.02.11 |
JQuery - AJAX Method (0) | 2021.02.03 |
JQuery - 다중 선택자 (0) | 2021.02.03 |
JQuery - form validator (0) | 2017.12.04 |
Comments