01 form 轉 URL, $(“form”).serialize()



<!DOCTYPE html>
<title>serialize Method</title>
<script src=

<!– jQuery code to show the working of this method –>
$(document).ready(function() {
$("button").click(function() {
#d1 {
width: 300px;
height: 100px;
padding: 20px;
border: 2px solid green;
margin-bottom: 10px;
<div id="d1">
<form action="">
Site Name:
<input type="text" name="SiteName" value="GeeksforGeeks">
<br> Contributor name:
<input type="text" name="ContributorName" value="geeks">
<!– click on this button –>
<button>Click here!</button>
<div id="d"></div>

01 String 字串CH04 ArrayCH05 FormCH05 時間日期Ch10 AJAX