본문 바로가기

프로그램&DB/AJAX

jQuery AJAX serialize() Method

jQuery AJAX serialize() Method

jQuery AJAX Methods jQuery AJAX Methods

Example

Output the result of serialized form values:

$("button").click(function(){
  $("div").text($("form").serialize());
});

Try it yourself »

Definition and Usage

The serialize() method creates a URL encoded text string by serializing form values.

You can select one or more form elements (like input and/or text area), or the form element itself.

The serialized values can be used in the URL query string when making an AJAX request.

Syntax

$(selector).serialize()



[출처] http://www.w3schools.com

'프로그램&DB > AJAX' 카테고리의 다른 글

[교육내용] JQuery Ajax 정리  (0) 2011.10.12
jQuery AJAX serializeArray() Method  (0) 2011.08.23
jQuery AJAX $.post() Method  (0) 2011.08.23
jQuery AJAX $.param() Method  (0) 2011.08.23
jQuery AJAX load() Method  (0) 2011.08.23