.ajaxSubmit ( SUCCESS_FN )
ajaxSubmit() function is used to submit a HTML Form element using AJAX. This method is applied to form elements. Form's method is used for AJAX type (GET/POST). Form's action is used for AJAX Server URL. Form's input elements and values are sent as AJAX data to the server.
Parameters
NameTypeDescription
SUCCESS_FNJSONA success callback function which will be called once AJAX call is successful


Example 1
Submit a form with input text field. Show the sever response in a div.
JS HTML CSS
		$.domLoaded(function() {

			$.get("#ajax1").on("click", function() {
			
				$.get("#details").ajaxSubmit(function(res) {
					$.get("#result").html(res);
				});
				
			});
			
		});						
						
<body>

<form id="details" name="details" method="GET" action="../../ajax/AjaxServer.php">
	Enter your Name : <input type="text" name="uname" id="uname" /> <br/>
	<input type="button" id="ajax1" value="Ajax Submit" /><br/>
</form>

Message from Server
<div id="result"></div>

</body>
		#result {
			width : 400px;
			border : 2px solid #000;
			padding : 10px;
		}					
						
Result