언어&플랫폼/Html/JQuery 2015. 5. 20. 10:52



$("#validate").submit(function( event ) {

// do something...


event.preventDefault();

});

$("#validate").submit(); 



버튼 클릭 이벤트안에 위 구문을 넣으면 리플레쉬없이 submit을 보낼수 있다.


'언어&플랫폼 > Html/JQuery' 카테고리의 다른 글

jquery datatable synchronous  (0) 2015.04.17
jquery 이벤트 찾기  (0) 2015.04.17
css 가운데 정렬  (0) 2013.11.04
[css] body 100% height  (0) 2013.10.18
[jquery] html 조작  (0) 2013.10.17
posted by cozyboy
:
언어&플랫폼/Html/JQuery 2015. 4. 17. 17:34



function initDataTables(id, ajax, columns){

$(id).DataTable( {

"ajax": {"url":ajax, "async":false},

"columns":columns,

"oLanguage": {

   "sSearch": "",

   "sLengthMenu": "<span>_MENU_</span>"

},

"sDom": "T<'row'<'col-md-6 col-xs-12 'l><'col-md-6 col-xs-12'f>r>t<'row'<'col-md-4 col-xs-12'i><'col-md-8 col-xs-12'p>>",

});

}

'언어&플랫폼 > Html/JQuery' 카테고리의 다른 글

refresh 없이 submit  (0) 2015.05.20
jquery 이벤트 찾기  (0) 2015.04.17
css 가운데 정렬  (0) 2013.11.04
[css] body 100% height  (0) 2013.10.18
[jquery] html 조작  (0) 2013.10.17
posted by cozyboy
:
언어&플랫폼/Html/JQuery 2015. 4. 17. 17:28

'언어&플랫폼 > Html/JQuery' 카테고리의 다른 글

refresh 없이 submit  (0) 2015.05.20
jquery datatable synchronous  (0) 2015.04.17
css 가운데 정렬  (0) 2013.11.04
[css] body 100% height  (0) 2013.10.18
[jquery] html 조작  (0) 2013.10.17
posted by cozyboy
: