Response title
This is preview!




Whats wrong with my local environment? XML MODULE?<form id="htmlForm" action="html-echo.php" method="post">
Message: <input type="text" name="message" value="Hello HTML" />
<input type="submit" value="Echo as HTML" />
</form><?php
echo '<div style="background-color:#ffa; padding:20px">' . $_POST['message'] . '</div>';
?>// prepare the form when the DOM is ready
$(document).ready(function() {
// bind form using ajaxForm
$('#htmlForm').ajaxForm({
// target identifies the element(s) to update with the server response
target: '#htmlExampleTarget',
// success identifies the function to invoke when the server response
// has been received; here we apply a fade-in effect to the new content
success: function() {
$('#htmlExampleTarget').fadeIn('slow');
}
});
});
© 2012 jQuery Foundation
Sponsored by
and others.
