As regards the use of ddaccordion.js -
Your page is in violation of Dynamic Drive's
usage terms, which, among other things, state that the script credit must appear in the source code of the
page(s) using the script. Please reinstate the notice first.
As regards your question - Put this script in the head of the page:
Code:
<script type="text/javascript">
jQuery(function($){
$('form').submit(function(e){
e.preventDefault();
var $f = $(this);
$.ajax({
url: $f.attr('action'),
type: 'post',
data: $f.serialize(),
success: function(data){
$('#results').replaceWith('<div id="results">' + data + '<\/div>');
}
});
});
});
</script>
Bookmarks